-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle.kts
43 lines (34 loc) · 929 Bytes
/
build.gradle.kts
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
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
id("java")
}
group = "com.convallyria"
version = "2.0.7"
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation(project(":nms", "reobf"))
implementation(project(":worldedit", "shadow"))
}
tasks {
build {
dependsOn(shadowJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
// See https://openjdk.java.net/jeps/247 for more information.
options.release.set(17)
}
javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
}
shadowJar {
archiveClassifier.set("")
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}