GT-3017: Storing minimum gradle version in application.properties.

This commit is contained in:
Ryan Kurtz 2019-07-18 13:39:17 -04:00
parent c80d84350b
commit de68f50eb4
6 changed files with 9 additions and 15 deletions

View file

@ -2,17 +2,16 @@ apply plugin: 'eclipse'
apply from: 'gradle/root/eclipse.gradle'
apply from: "gradle/support/eclipseLauncher.gradle"
apply from: "gradle/support/loadApplicationProperties.gradle"
/***************************************************************************************
* Make sure the correct version of gradle is being used
***************************************************************************************/
import org.gradle.util.GradleVersion;
final GradleVersion minimum_version = GradleVersion.version('5.0')
final GradleVersion minimum_version = GradleVersion.version("${rootProject.GRADLE_MINIMUM_VERSION}")
if (GradleVersion.current() < minimum_version) {
throw new GradleException("Requires at least $minimum_version, but was ran with $gradle.gradleVersion")
throw new GradleException("Requires at least $minimum_version, but was run with $gradle.gradleVersion")
}
/***************************************************************************************
@ -55,12 +54,6 @@ if (file("flatRepo").isDirectory()) {
}
}
/*********************************************************************************
* load properties from Ghidra/application.properties file
*********************************************************************************/
apply from: "gradle/support/loadApplicationProperties.gradle"
/****************************************************************************
* Create a set containing all the platforms we need when building native
* artifacts. This is here for convenience and can be used in a build file