mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-27 10:41:00 -05:00
8 lines
345 B
Groovy
8 lines
345 B
Groovy
|
rootProject.name = 'no-wrapper'
|
||
|
|
||
|
println "Using Gradle version: ${gradle.gradleVersion}"
|
||
|
|
||
|
def gradleVersionCheck = System.properties.gradleVersionCheck
|
||
|
if (gradleVersionCheck && gradle.gradleVersion != gradleVersionCheck) {
|
||
|
throw new RuntimeException("Got the wrong version: expected ${gradleVersionCheck} but was ${gradle.gradleVersion}")
|
||
|
}
|