-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
81 lines (67 loc) · 2.04 KB
/
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
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
76
77
78
79
80
81
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("java")
id("java-library")
id("org.jetbrains.kotlin.jvm") version "2.1.0"
id("net.kyori.indra") version "3.1.3"
id("net.kyori.indra.checkstyle") version "3.1.3"
}
val checkstyleVersion = "9.3"
defaultTasks("clean", "build")
logger.lifecycle("""
*******************************************
You are building WorldGuardRegionProtect!
If you encounter trouble:
1) Try running 'build' in a separate Gradle run
2) Use gradlew and not gradle
3) If you have a problem, you can join us discord https://discord.gg/kvqvA3GTVF
Output files will be in [subproject]/build/libs
*******************************************
""")
allprojects {
plugins.apply("java")
plugins.apply("java-library")
plugins.apply("org.jetbrains.kotlin.jvm")
plugins.apply("net.kyori.indra")
plugins.apply("net.kyori.indra.checkstyle")
plugins.apply("maven-publish")
indra {
checkstyle(checkstyleVersion)
kotlin {
jvmToolchain(21)
}
javaVersions {
target(21)
}
}
}
subprojects {
tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
options.release.set(21)
}
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
languageVersion.set(KotlinVersion.KOTLIN_2_0)
}
}
tasks.withType<Test> {
testLogging {
events = mutableSetOf(TestLogEvent.PASSED, TestLogEvent.FAILED, TestLogEvent.SKIPPED)
exceptionFormat = TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
}
}
tasks.test {
testLogging {
events("PASSED", "SKIPPED", "FAILED")
}
}
}