mirror of
https://github.com/Maschell/GhidraRPXLoader.git
synced 2024-11-14 12:25:12 +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 {
|
||||
gradleVersion = '7.5.1'
|
||||
gradleVersion = '8.10.2'
|
||||
distributionType = Wrapper.DistributionType.BIN
|
||||
}
|
||||
@ -61,14 +60,13 @@ configurations {
|
||||
dependencies {
|
||||
implementation fileTree(dir: ghidraInstallDir + '/Ghidra/Processors', include: "**/*.jar")
|
||||
localDeps group: 'org.lz4', name: 'lz4-java', version: '1.5.1'
|
||||
implementation configurations.localDeps
|
||||
}
|
||||
|
||||
buildExtension {
|
||||
baseName "${project.name}-${project.version}-${getGitHash()}-Ghidra_${ghidra_version}".replace(' ', '_')
|
||||
extension 'zip'
|
||||
destinationDir DISTRIBUTION_DIR
|
||||
version ''
|
||||
archiveBaseName = "${project.name}-${project.version}-${getGitHash()}-Ghidra_${ghidra_version}".replace(' ', '_')
|
||||
archiveExtension = 'zip'
|
||||
destinationDirectory = DISTRIBUTION_DIR
|
||||
archiveVersion = ''
|
||||
|
||||
// Make sure that we don't try to copy the same file with the same path into the
|
||||
// zip (this can happen!)
|
||||
@ -121,7 +119,7 @@ buildExtension {
|
||||
}
|
||||
|
||||
doLast {
|
||||
println "\nCreated " + baseName + "." + extension + " in " + destinationDir
|
||||
println "\nCreated " + archiveBaseName + "." + archiveExtension + " in " + destinationDirectory
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user