* Fix Gradle deprecations By using test suites, we explicitely configure the relevant dependencies on the test sourceset. This is not done by merely configuring the test task. * Switch to maintained version of Shadow * Update to Gradle 8.14.2
32 lines
639 B
Plaintext
32 lines
639 B
Plaintext
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(17))
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(rootProject.libs.junit)
|
|
}
|
|
|
|
testing.suites.named<JvmTestSuite>("test") {
|
|
useJUnitJupiter()
|
|
targets.all {
|
|
testTask.configure {
|
|
reports.junitXml.required = true
|
|
}
|
|
}
|
|
}
|
|
}
|