mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 22:47:42 +01:00
32 lines
639 B
Kotlin
32 lines
639 B
Kotlin
plugins {
|
|
`java-library`
|
|
id("velocity-checkstyle") apply false
|
|
id("velocity-spotless") apply false
|
|
}
|
|
|
|
subprojects {
|
|
apply<JavaLibraryPlugin>()
|
|
|
|
apply(plugin = "velocity-checkstyle")
|
|
apply(plugin = "velocity-spotless")
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(rootProject.libs.junit)
|
|
}
|
|
|
|
testing.suites.named<JvmTestSuite>("test") {
|
|
useJUnitJupiter()
|
|
targets.all {
|
|
testTask.configure {
|
|
reports.junitXml.required = true
|
|
}
|
|
}
|
|
}
|
|
}
|