-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbuild.gradle
More file actions
129 lines (113 loc) · 3.24 KB
/
Copy pathbuild.gradle
File metadata and controls
129 lines (113 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
allprojects {
apply plugin: "java"
group= "br.com.gamemods.minecity"
version = "1.0.A.3-SNAPSHOT"
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}
subprojects {
repositories {
mavenCentral()
maven {
name = 'gamemods-nexus'
url = 'http://nexus.gamemods.com.br/content/groups/public/'
}
maven {
name = "spigot-nexus"
url = "https://hub.spigotmc.org/nexus/content/groups/public/"
}
maven {
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
name = 'Plugin Metrics'
url = 'http://repo.mcstats.org/content/repositories/public'
}
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
maven {
name = 'vault-repo'
url = 'http://nexus.hc.to/content/repositories/pub_releases'
}
maven {
url = 'https://jitpack.io'
}
}
dependencies {
compile "org.jetbrains:annotations:13.0"
testCompile "org.luaj:luaj-jse:3.0.1"
testCompile "junit:junit:4.12"
testCompile "org.powermock:powermock-module-junit4:1.6.5"
testCompile "org.powermock:powermock-api-mockito:1.6.5"
testCompile project(":UnitTest")
testCompile "mysql:mysql-connector-java:5.1.32"
}
}
project(':VaultEco') {
dependencies {
compile project(':Core')
compile "net.milkbowl.vault:VaultAPI:1.6"
compile "org.bukkit:bukkit:1.8-R0.1-SNAPSHOT"
}
}
project(':SpongeEco') {
dependencies {
compile project(':Core')
compile 'org.spongepowered:spongeapi:5.0.0'
}
}
project(':Bukkit') {
apply plugin: 'com.github.johnrengelman.shadow'
configurations {
shade
compile.extendsFrom shade
}
dependencies {
shade project(':Core')
shade project(':VaultEco')
shade(project(':SpongeEco')) {
transitive = false
}
//compile files("run/BuildTools/Spigot/Spigot-Server/target/original-spigot-1.10.2-R0.1-SNAPSHOT.jar")
//compile files("run/BuildTools/spigot-1.10.2.jar")
compile "org.spigotmc:spigot-api:1.10.2-R0.1-SNAPSHOT"
compile "org.mcstats.bukkit:metrics:R8-SNAPSHOT"
}
jar {
configurations.shade.each { dep ->
from(project.zipTree(dep)){
include 'br/**', '*.yml', '*.info', 'assets/minecity/**'
}
}
}
shadowJar {
dependencies {
//noinspection GroovyAssignabilityCheck
include(dependency("org.mcstats.bukkit:metrics:R8-SNAPSHOT"))
include(project(':Core'))
}
baseName = 'MineCity-Bukkit-MC-1.10.2'
classifier = null
relocate 'org.mcstats', 'br.com.gamemods.minecity.bukkit.mcstats'
}
jar.enabled = false
build.finalizedBy shadowJar
}
project(':UnitTest') {
dependencies {
compile "org.assertj:assertj-core:3.1.0"
}
}