-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (45 loc) · 1.35 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
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
id 'kr.entree.spigradle' version '2.2.3' apply false
}
allprojects {
def targetJavaVersion = 11
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
group = 'kr.enak.crescendo.exclusiveserverselection'
version = '1.0'
apply plugin: 'java'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
java {
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = targetJavaVersion
}
options.encoding = 'UTF-8';
}
}
subprojects {
if (project.name.endsWith("plugin")) {
apply plugin: 'com.github.johnrengelman.shadow'
jar {
finalizedBy shadowJar
outputs.upToDateWhen { false }
}
shadowJar {
outputs.upToDateWhen { false }
}
processResources {
def props = [version: version]
inputs.properties props
expand props
filteringCharset 'UTF-8'
filesMatching('bungee.yml') {
expand props
}
}
}
}