-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
95 lines (81 loc) · 2.38 KB
/
build.gradle
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
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-SNAPSHOT"
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}
subprojects {
repositories {
mavenCentral()
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'
}
}
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(':Bukkit') {
apply plugin: 'com.github.johnrengelman.shadow'
configurations {
shade
compile.extendsFrom shade
}
dependencies {
shade project(':Core')
//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"
}
}