Ghidra is a software reverse engineering (SRE) framework
Remove deprecated Gradle features
Anton Kochkov0a81592c233e
diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/build.gradle b/Ghidra/Debug/Debugger-agent-dbgeng/build.gradleindex bd89485188..f2222c1b92 100644--- a/Ghidra/Debug/Debugger-agent-dbgeng/build.gradle+++ b/Ghidra/Debug/Debugger-agent-dbgeng/build.gradle@@ -69,7 +69,7 @@ task nodepJar(type: Jar) {dependsOn(configureNodepJar)dependsOn(jar)- appendix = 'nodep'+ archiveAppendix = 'nodep'manifest {attributes['Main-Class'] = 'agent.dbgeng.gadp.DbgEngGadpServer'}diff --git a/Ghidra/Debug/Debugger-agent-dbgmodel/build.gradle b/Ghidra/Debug/Debugger-agent-dbgmodel/build.gradleindex 350a6e743b..37a701146d 100644--- a/Ghidra/Debug/Debugger-agent-dbgmodel/build.gradle+++ b/Ghidra/Debug/Debugger-agent-dbgmodel/build.gradle@@ -64,7 +64,7 @@ task nodepJar(type: Jar) {dependsOn(configureNodepJar)dependsOn(jar)- appendix = 'nodep'+ archiveAppendix = 'nodep'manifest {attributes['Main-Class'] = 'agent.dbgmodel.gadp.DbgModelGadpServer'}diff --git a/Ghidra/Debug/Debugger-agent-gdb/build.gradle b/Ghidra/Debug/Debugger-agent-gdb/build.gradleindex 4f6104601e..b8d70ee893 100644--- a/Ghidra/Debug/Debugger-agent-gdb/build.gradle+++ b/Ghidra/Debug/Debugger-agent-gdb/build.gradle@@ -67,7 +67,7 @@ task nodepJar(type: Jar) {dependsOn(configureNodepJar)dependsOn(jar)- appendix = 'nodep'+ archiveAppendix = 'nodep'manifest {attributes['Main-Class'] = 'agent.gdb.gadp.GdbGadpServer'}diff --git a/Ghidra/Debug/Debugger-agent-lldb/build.gradle b/Ghidra/Debug/Debugger-agent-lldb/build.gradleindex b92c6c51d3..7e50733583 100644--- a/Ghidra/Debug/Debugger-agent-lldb/build.gradle+++ b/Ghidra/Debug/Debugger-agent-lldb/build.gradle@@ -64,7 +64,7 @@ task nodepJar(type: Jar) {dependsOn(configureNodepJar)dependsOn(jar)- appendix = 'nodep'+ archiveAppendix = 'nodep'manifest {attributes['Main-Class'] = 'agent.lldb.gadp.LldbGadpServer'}diff --git a/Ghidra/Debug/Framework-AsyncComm/build.gradle b/Ghidra/Debug/Framework-AsyncComm/build.gradleindex 0bfa2d3451..66363f73e5 100644--- a/Ghidra/Debug/Framework-AsyncComm/build.gradle+++ b/Ghidra/Debug/Framework-AsyncComm/build.gradle@@ -32,7 +32,7 @@ task genTestPy(type: JavaExec) {outputs.dir(outDir)classpath(sourceSets["main"].runtimeClasspath)classpath(sourceSets["test"].runtimeClasspath)- main = "ghidra.comm.util.pyexport.GeneratePython"+ mainClass = "ghidra.comm.util.pyexport.GeneratePython"args("ghidra.comm.tests.packet", outDir)doLast {println("NOTE: It is normal to see some export errors, since some classes are intentionally broken to test error detection")diff --git a/Ghidra/Features/Base/build.gradle b/Ghidra/Features/Base/build.gradleindex 47d2746757..6d3c5ad8a3 100644--- a/Ghidra/Features/Base/build.gradle+++ b/Ghidra/Features/Base/build.gradle@@ -87,7 +87,7 @@ task buildCParser(type: JavaExec) {outputs.dir file("${outputDir}")classpath = configurations.javacc- main = 'javacc'+ mainClass = 'javacc'workingDir = "${srcDir}"args "-OUTPUT_DIRECTORY=${outputDir}"// args "-DEBUG_PARSER=true"@@ -107,7 +107,7 @@ task buildCPPParser(type: JavaExec) {outputs.dir file("${outputDir}")classpath = configurations.javacc- main = 'javacc'+ mainClass = 'javacc'workingDir = "${srcDir}"args "-OUTPUT_DIRECTORY=${outputDir}"// args "-DEBUG_PARSER=true"diff --git a/gradle/helpProject.gradle b/gradle/helpProject.gradleindex 9751060d27..03206521c8 100644--- a/gradle/helpProject.gradle+++ b/gradle/helpProject.gradle@@ -81,7 +81,7 @@ task indexHelp(type: JavaExec) {classpath = sourceSets.helpIndex.runtimeClasspath- main = 'com.sun.java.help.search.Indexer'+ mainClass = 'com.sun.java.help.search.Indexer'// tell the indexer where send its outputargs '-db', outputFile.absolutePath@@ -131,7 +131,7 @@ task buildHelp(type: JavaExec, dependsOn: indexHelp) {inputs.dir helpRootDiroutputs.dir outputDir- main = 'help.GHelpBuilder'+ mainClass = 'help.GHelpBuilder'args '-n', "${project.name}" // use the module's name for the help file name@@ -169,7 +169,7 @@ task findUnusedHelp(type: JavaExec) {inputs.dir helpRootDir- main = 'help.validator.UnusedHelpImageFileFinder'+ mainClass = 'help.validator.UnusedHelpImageFileFinder'// args '-debug' // print debug infodiff --git a/gradle/processorProject.gradle b/gradle/processorProject.gradleindex 139d062fa6..3c2ecbd012 100644--- a/gradle/processorProject.gradle+++ b/gradle/processorProject.gradle@@ -164,7 +164,7 @@ task sleighCompile (type: JavaExec) {// define standard parameters for JavaExecclasspath configurations.sleighConfig- main = 'ghidra.pcodeCPort.slgh_compile.SleighCompile'+ mainClass = 'ghidra.pcodeCPort.slgh_compile.SleighCompile'// Delay adding the directory argument until the first part of the execution phase, so// that any extra args added by a project override will be added to the arg list beforediff --git a/gradle/root/jacoco.gradle b/gradle/root/jacoco.gradleindex e195bc2f4a..1fcee0f6ac 100644--- a/gradle/root/jacoco.gradle+++ b/gradle/root/jacoco.gradle@@ -104,11 +104,9 @@ task jacocoReport(type: JacocoReport, group: 'Coverage reports') {reports {html {- enabled true+ requireddestination new File(rootDir.absolutePath + "/jacocoReport")}- xml {- enabled false- }+ xml { }}}diff --git a/gradle/root/svg.gradle b/gradle/root/svg.gradleindex 20309a2ea6..3eb608ca64 100644--- a/gradle/root/svg.gradle+++ b/gradle/root/svg.gradle@@ -62,7 +62,7 @@ task rasterizeSvg(type: JavaExec) {files.push(file.toString())}- main = MAIN_CLASS+ mainClass = MAIN_CLASS// Set up the entire arg list, minus the input files.def argsList = ["-scriptSecurityOff",