// Precompiled script plugins, written in Groovy because the main build is Groovy DSL and a reader // moving logic out of a leaf should not also be translating it. plugins { id 'groovy-gradle-plugin' } dependencies { // TestKit needs the Gradle API of the running distribution, which `groovy-gradle-plugin` already // puts on the main source set; the test source set asks for it explicitly. testImplementation gradleTestKit() testImplementation libs.spock.core.groovy4 testImplementation libs.junit.jupiter testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } tasks.named('test') { useJUnitPlatform() }