forked from Gjum/Synapse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (40 loc) · 863 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
44
45
plugins {
id("java-library")
}
allprojects {
apply(plugin = "java-library")
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
withSourcesJar()
}
tasks {
compileJava {
options.encoding = "UTF-8"
options.release = 21
}
}
}
tasks {
create("testClient") {
finalizedBy(
":synapse-mod:clean",
":synapse-mod:runClient"
)
}
create("testServer") {
doFirst {
project.ext.set("synapseLoggerLevel", "DEBUG")
}
finalizedBy(
":synapse-server:clean",
":synapse-server:run"
)
}
}