mirror of
https://github.com/Maschell/GhidraRPXLoader.git
synced 2024-11-26 01:44:18 +01:00
Upgrade build code for Gradle 8 to remove deprecated uses
Fixes build errors that appeared as warnings in Gradle 7: * Configurations no longer allowed as Dependencies * AbstractArchiveTask API Cleanup: Deprecated properties `baseName`, `extension`, `destinationDir`, and `version` have been removed in Gradle 8. Instead use `archiveBaseName`, `archiveExtension`, `destinationDirectory`, and `archiveVersion`. https://docs.gradle.org/current/userguide/upgrading_version_7.html#abstractarchivetask_api_cleanup
This commit is contained in:
parent
9e2c2f5f16
commit
7c4db1b3b7
12
build.gradle
12
build.gradle
@ -45,7 +45,6 @@ def getGitHash = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
wrapper {
|
wrapper {
|
||||||
gradleVersion = '7.5.1'
|
|
||||||
gradleVersion = '8.10.2'
|
gradleVersion = '8.10.2'
|
||||||
distributionType = Wrapper.DistributionType.BIN
|
distributionType = Wrapper.DistributionType.BIN
|
||||||
}
|
}
|
||||||
@ -61,14 +60,13 @@ configurations {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: ghidraInstallDir + '/Ghidra/Processors', include: "**/*.jar")
|
implementation fileTree(dir: ghidraInstallDir + '/Ghidra/Processors', include: "**/*.jar")
|
||||||
localDeps group: 'org.lz4', name: 'lz4-java', version: '1.5.1'
|
localDeps group: 'org.lz4', name: 'lz4-java', version: '1.5.1'
|
||||||
implementation configurations.localDeps
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildExtension {
|
buildExtension {
|
||||||
baseName "${project.name}-${project.version}-${getGitHash()}-Ghidra_${ghidra_version}".replace(' ', '_')
|
archiveBaseName = "${project.name}-${project.version}-${getGitHash()}-Ghidra_${ghidra_version}".replace(' ', '_')
|
||||||
extension 'zip'
|
archiveExtension = 'zip'
|
||||||
destinationDir DISTRIBUTION_DIR
|
destinationDirectory = DISTRIBUTION_DIR
|
||||||
version ''
|
archiveVersion = ''
|
||||||
|
|
||||||
// Make sure that we don't try to copy the same file with the same path into the
|
// Make sure that we don't try to copy the same file with the same path into the
|
||||||
// zip (this can happen!)
|
// zip (this can happen!)
|
||||||
@ -121,7 +119,7 @@ buildExtension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
doLast {
|
doLast {
|
||||||
println "\nCreated " + baseName + "." + extension + " in " + destinationDir
|
println "\nCreated " + archiveBaseName + "." + archiveExtension + " in " + destinationDirectory
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user