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-10-20 15:35:03 +00:00
|
|
|
// Write marker file so we can detect if task was configured
|
|
|
|
file("task-configured.txt").text = "true"
|
2022-03-17 17:15:38 +00:00
|
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|