Rename 'basic' sample to 'groovy-dsl'

This commit is contained in:
Daz DeBoer 2021-09-28 20:31:11 -06:00
parent 21dee71590
commit 17f624cb5b
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
13 changed files with 9 additions and 9 deletions

View file

@ -0,0 +1,23 @@
plugins {
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation('junit:junit:4.12')
}
tasks.named("test").configure {
// Use an environment variable to bypass config-cache checks
if (System.getenv('VERIFY_CACHED_CONFIGURATION') != null) {
throw new RuntimeException("Configuration was not cached: unexpected configuration of test task")
}
doLast {
if (System.properties.verifyCachedBuild) {
throw new RuntimeException("Build was not cached: unexpected execution of test task")
}
}
}