mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-28 15:11:44 +00:00
GP-1189: Building extensions now fails gracefully if an unsupported
Gradle version is used.
This commit is contained in:
parent
47247acf07
commit
0b38608c2e
@ -33,6 +33,16 @@ file(ghidraDir + "/application.properties").withReader { reader ->
|
||||
project.ext.ghidra_version = ghidraProps.getProperty('application.version')
|
||||
project.ext.RELEASE_NAME = ghidraProps.getProperty('application.release.name')
|
||||
project.ext.DISTRO_PREFIX = "ghidra_${ghidra_version}"
|
||||
project.ext.GRADLE_MINIMUM_VERSION = ghidraProps.getProperty('application.gradle.min')
|
||||
}
|
||||
|
||||
/***************************************************************************************
|
||||
* Make sure the correct version of gradle is being used
|
||||
***************************************************************************************/
|
||||
import org.gradle.util.GradleVersion;
|
||||
final GradleVersion minimum_version = GradleVersion.version("${GRADLE_MINIMUM_VERSION}")
|
||||
if (GradleVersion.current() < minimum_version) {
|
||||
throw new GradleException("Requires at least $minimum_version, but was run with $gradle.gradleVersion")
|
||||
}
|
||||
|
||||
configurations {
|
||||
|
Loading…
Reference in New Issue
Block a user