-
-
Notifications
You must be signed in to change notification settings - Fork 436
/
build.gradle
75 lines (60 loc) · 1.47 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
plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
id 'io.freefair.lombok' version '5.3.0'
}
println """
*******************************************
You are building SKCraft Launcher!
Output files will be in [subproject]/build/libs
*******************************************
"""
subprojects {
apply plugin: 'java'
group = 'com.skcraft'
version = '4.6-SNAPSHOT'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
repositories {
mavenCentral()
}
if (JavaVersion.current().isJava8Compatible()) {
// Java 8 turns on doclint which we fail
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
tasks.withType(JavaExec) {
workingDir = new File(rootDir, "run/")
workingDir.mkdirs()
}
// Work around gradle shadow bug
// see https://github.com/johnrengelman/shadow/issues/713
afterEvaluate {
startScripts {
dependsOn(shadowJar)
}
distTar {
dependsOn(shadowJar)
}
distZip {
dependsOn(shadowJar)
}
startShadowScripts {
dependsOn(jar)
}
shadowDistTar {
dependsOn(jar)
}
shadowDistZip {
dependsOn(jar)
}
}
}
task clean {
subprojects {
rootProject.clean.dependsOn tasks.matching { it.name == "clean" }
}
}