mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-10 06:02:09 +00: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
@ -8,8 +8,11 @@ apply from: "gradle/support/eclipseLauncher.gradle"
|
||||
/***************************************************************************************
|
||||
* Make sure the correct version of gradle is being used
|
||||
***************************************************************************************/
|
||||
if (gradle.gradleVersion != "5.0") {
|
||||
throw new GradleException("Requires Gradle 5.0, but was run with $gradle.gradleVersion")
|
||||
import org.gradle.util.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…
Reference in New Issue
Block a user