2020-06-15 10:59:55 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-04-02 18:37:16 +00:00
|
|
|
testImplementation('junit:junit:4.13.2')
|
2020-06-15 10:59:55 +00:00
|
|
|
}
|
2021-08-27 11:40:14 +00:00
|
|
|
|
|
|
|
tasks.named("test").configure {
|
2022-03-17 17:15:38 +00:00
|
|
|
// Echo an output value so we can detect configuration-cache usage
|
|
|
|
println "::set-output name=task_configured::yes"
|
|
|
|
|
2021-08-27 11:40:14 +00:00
|
|
|
doLast {
|
|
|
|
if (System.properties.verifyCachedBuild) {
|
|
|
|
throw new RuntimeException("Build was not cached: unexpected execution of test task")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|