mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Require a minimum Gradle version instead of a specific version
Allows the use of a more sensible range of Gradle versions.
This commit is contained in:
parent
4d31ed9db4
commit
c80d84350b
1 changed files with 5 additions and 2 deletions
|
@ -8,8 +8,11 @@ apply from: "gradle/support/eclipseLauncher.gradle"
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
* Make sure the correct version of gradle is being used
|
* Make sure the correct version of gradle is being used
|
||||||
***************************************************************************************/
|
***************************************************************************************/
|
||||||
if (gradle.gradleVersion != "5.0") {
|
import org.gradle.util.GradleVersion;
|
||||||
throw new GradleException("Requires Gradle 5.0, but was run with $gradle.gradleVersion")
|
final GradleVersion minimum_version = GradleVersion.version('5.0')
|
||||||
|
|
||||||
|
if (GradleVersion.current() < minimum_version) {
|
||||||
|
throw new GradleException("Requires at least $minimum_version, but was ran with $gradle.gradleVersion")
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue