mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 01:39:21 +02:00
GT-3017: Storing minimum gradle version in application.properties.
This commit is contained in:
parent
c80d84350b
commit
de68f50eb4
6 changed files with 9 additions and 15 deletions
13
build.gradle
13
build.gradle
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue