Files
Velocity/build.gradle.kts
Christoph Loy f3e30558e4 Gradle deprecation fixes & upgrades (#1594)
* 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
2025-06-28 16:28:29 -07:00

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
}
}
}
}