GP-5257: Fixing Gradle warnings

This commit is contained in:
Ryan Kurtz
2025-01-10 13:51:33 -05:00
parent eaa2a5c6b3
commit 44fb13b292
36 changed files with 234 additions and 346 deletions

View File

@@ -43,7 +43,7 @@ file(ghidraDir + "/application.properties").withReader { reader ->
checkGradleVersion()
task copyDependencies(type: Copy) {
group "Ghidra Private"
group = "Ghidra Private"
from configurations.runtimeClasspath
into "lib"
exclude { fileTreeElement ->
@@ -77,7 +77,7 @@ def DISTRIBUTION_DIR = file("dist")
def pathInZip = "${project.name}"
task zipSource (type: Zip) {
group "Ghidra Private"
group = "Ghidra Private"
// Define some metadata about the zip (name, location, version, etc....)
it.archiveBaseName = project.name + "-src"
@@ -91,7 +91,7 @@ task zipSource (type: Zip) {
}
task buildExtension (type: Zip) {
group "Ghidra Private"
group = "Ghidra Private"
archiveBaseName = "${ZIP_NAME_PREFIX}_${project.name}"
archiveExtension = 'zip'
@@ -100,7 +100,7 @@ task buildExtension (type: Zip) {
// Make sure that we don't try to copy the same file with the same path into the
// zip (this can happen!)
duplicatesStrategy 'exclude'
duplicatesStrategy = 'exclude'
// This filtered property file copy must appear before the general
// copy to ensure that it is prefered over the unmodified file
@@ -302,7 +302,7 @@ def hasJarHelp(File file) {
}
tasks.register('cleanHelp') {
group "Ghidra Private"
group = "Ghidra Private"
File helpOutput = file('build/help/main/help')
doFirst {
@@ -312,7 +312,7 @@ tasks.register('cleanHelp') {
// Task for calling the java help indexer, which creates a searchable index of the help contents
tasks.register('indexHelp', JavaExec) {
group "Ghidra Private"
group = "Ghidra Private"
File helpRootDir = file('src/main/help/help')
File outputFile = file("build/help/main/help/${project.name}_JavaHelpSearch")
@@ -362,7 +362,7 @@ tasks.register('indexHelp', JavaExec) {
// - the files generated will be placed in a diretory usable during development mode and will
// eventually be placed in the <Module>.jar file
tasks.register('buildHelp', JavaExec) {
group "Ghidra Private"
group = "Ghidra Private"
dependsOn 'indexHelp'
@@ -436,7 +436,7 @@ tasks.register('buildHelp', JavaExec) {
// include the help into the module's jar
jar {
duplicatesStrategy 'exclude'
duplicatesStrategy = 'exclude'
from "build/help/main" // include the generated help index files
from "src/main/help" // include the help source files
archiveVersion = ""