forked from SKCraft/Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (45 loc) · 1.12 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
}
}
plugins {
id "com.github.johnrengelman.shadow" version "4.0.4"
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'
apply plugin: 'maven'
group = 'com.skcraft'
version = '0.0.8'
sourceCompatibility = 1.8
targetCompatibility = 1.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()
}
}
task clean {
subprojects {
rootProject.clean.dependsOn tasks.matching { it.name == "clean" }
}
}