mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 11:31:43 +00:00
GP-4685: Fixing Gradle warnings
This commit is contained in:
parent
715a8ba335
commit
d0b29b0dab
@ -35,10 +35,12 @@ sourceSets {
|
|||||||
// this dependency block is needed for this code to compile in our eclipse environment. It is not needed
|
// this dependency block is needed for this code to compile in our eclipse environment. It is not needed
|
||||||
// for the gradle build
|
// for the gradle build
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
implementation project(':BSim')
|
implementation project(':BSim')
|
||||||
}
|
}
|
||||||
libsDirName='ziplayout'
|
|
||||||
|
base {
|
||||||
|
libsDirectory = file('ziplayout')
|
||||||
|
}
|
||||||
|
|
||||||
task copyGenericTask(type: Copy) {
|
task copyGenericTask(type: Copy) {
|
||||||
from project(':Generic').file('src/main/java')
|
from project(':Generic').file('src/main/java')
|
||||||
|
@ -123,7 +123,7 @@ task zipExtensions(type: Zip, dependsOn:jarTasks) {
|
|||||||
include "scripts_*.jar"
|
include "scripts_*.jar"
|
||||||
|
|
||||||
for(jarTask in jarTasks) {
|
for(jarTask in jarTasks) {
|
||||||
from relativePath(jarTask.archivePath)
|
from relativePath(jarTask.archiveFile.getAsFile())
|
||||||
exclude jarTask.dirName
|
exclude jarTask.dirName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,8 +18,10 @@ eclipse.project.name = '_JsonDoclet'
|
|||||||
|
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
|
|
||||||
sourceCompatibility = "${rootProject.JAVA_COMPILER}"
|
java {
|
||||||
targetCompatibility = "${rootProject.JAVA_COMPILER}"
|
sourceCompatibility = "${rootProject.JAVA_COMPILER}"
|
||||||
|
targetCompatibility = "${rootProject.JAVA_COMPILER}"
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api "com.google.code.gson:gson:2.9.0"
|
api "com.google.code.gson:gson:2.9.0"
|
||||||
|
@ -15,8 +15,10 @@
|
|||||||
*/
|
*/
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
|
|
||||||
sourceCompatibility = "${rootProject.JAVA_COMPILER}"
|
java {
|
||||||
targetCompatibility = "${rootProject.JAVA_COMPILER}"
|
sourceCompatibility = "${rootProject.JAVA_COMPILER}"
|
||||||
|
targetCompatibility = "${rootProject.JAVA_COMPILER}"
|
||||||
|
}
|
||||||
|
|
||||||
//This project requires the eclpse PDE plugin. To create eclipse files for this project, run
|
//This project requires the eclpse PDE plugin. To create eclipse files for this project, run
|
||||||
// "gradle eclipse -PeclipsePDE"
|
// "gradle eclipse -PeclipsePDE"
|
||||||
|
@ -19,8 +19,10 @@ eclipse.project.name = '_LaunchSupport'
|
|||||||
|
|
||||||
// This should run in the oldest version of Java possible to maximize the odds of it running on a
|
// This should run in the oldest version of Java possible to maximize the odds of it running on a
|
||||||
// user's system.
|
// user's system.
|
||||||
sourceCompatibility = 1.8
|
java {
|
||||||
targetCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
targetCompatibility = 1.8
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
|
@ -17,8 +17,10 @@ apply plugin: 'java-library'
|
|||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
eclipse.project.name = '_GhidraDocs'
|
eclipse.project.name = '_GhidraDocs'
|
||||||
|
|
||||||
sourceCompatibility = "${rootProject.JAVA_COMPILER}"
|
java {
|
||||||
targetCompatibility = "${rootProject.JAVA_COMPILER}"
|
sourceCompatibility = "${rootProject.JAVA_COMPILER}"
|
||||||
|
targetCompatibility = "${rootProject.JAVA_COMPILER}"
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
ghidraClass {
|
ghidraClass {
|
||||||
|
@ -18,7 +18,7 @@ apply from: "$rootProject.projectDir/gradle/debugger/hasNodepJar.gradle"
|
|||||||
|
|
||||||
task executableJar {
|
task executableJar {
|
||||||
ext.execsh = file("src/main/sh/execjar.sh")
|
ext.execsh = file("src/main/sh/execjar.sh")
|
||||||
ext.jarfile = file(nodepJar.archivePath)
|
ext.jarfile = nodepJar.archiveFile
|
||||||
ext.outjar = file("${buildDir}/bin/run")
|
ext.outjar = file("${buildDir}/bin/run")
|
||||||
dependsOn(nodepJar)
|
dependsOn(nodepJar)
|
||||||
inputs.file { execsh }
|
inputs.file { execsh }
|
||||||
|
@ -50,12 +50,12 @@ task configureNodepJar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task nodepJar(type: Jar) {
|
task nodepJar(type: Jar) {
|
||||||
inputs.file(file(jar.archivePath))
|
inputs.file(jar.archiveFile)
|
||||||
dependsOn(configureNodepJar)
|
dependsOn(configureNodepJar)
|
||||||
dependsOn(jar)
|
dependsOn(jar)
|
||||||
|
|
||||||
archiveAppendix = 'nodep'
|
archiveAppendix = 'nodep'
|
||||||
|
|
||||||
from(zipTree(jar.archivePath))
|
from(zipTree(jar.archiveFile))
|
||||||
duplicatesStrategy = 'exclude'
|
duplicatesStrategy = 'exclude'
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ processTestResources {
|
|||||||
duplicatesStrategy = 'exclude'
|
duplicatesStrategy = 'exclude'
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins.withId('java') {
|
java {
|
||||||
sourceCompatibility = "${rootProject.JAVA_COMPILER}"
|
sourceCompatibility = "${rootProject.JAVA_COMPILER}"
|
||||||
targetCompatibility = "${rootProject.JAVA_COMPILER}"
|
targetCompatibility = "${rootProject.JAVA_COMPILER}"
|
||||||
}
|
}
|
||||||
|
@ -95,17 +95,17 @@ task pcodeTest (type: Test) { t ->
|
|||||||
}
|
}
|
||||||
|
|
||||||
rootProject.unitTestReport {
|
rootProject.unitTestReport {
|
||||||
reportOn this.project.test
|
testResults.from(this.project.test)
|
||||||
}
|
}
|
||||||
rootProject.integrationTestReport {
|
rootProject.integrationTestReport {
|
||||||
reportOn this.project.integrationTest
|
testResults.from(this.project.integrationTest)
|
||||||
}
|
}
|
||||||
rootProject.pcodeTestReport {
|
rootProject.pcodeTestReport {
|
||||||
reportOn this.project.pcodeTest
|
testResults.from(this.project.pcodeTest)
|
||||||
}
|
}
|
||||||
rootProject.combinedTestReport {
|
rootProject.combinedTestReport {
|
||||||
reportOn this.project.test
|
testResults.from(this.project.test)
|
||||||
reportOn this.project.integrationTest
|
testResults.from(this.project.integrationTest)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ task jacocoReport(type: JacocoReport, group: 'Coverage reports') {
|
|||||||
reports {
|
reports {
|
||||||
html {
|
html {
|
||||||
required
|
required
|
||||||
destination new File(rootDir.absolutePath + "/jacocoReport")
|
outputLocation = new File(rootDir.absolutePath + "/jacocoReport")
|
||||||
}
|
}
|
||||||
xml { }
|
xml { }
|
||||||
}
|
}
|
||||||
|
@ -369,7 +369,7 @@ def initTestJVM(Task task, String rootDirName) {
|
|||||||
*********************************************************************************/
|
*********************************************************************************/
|
||||||
task parallelCombinedTestReport(type: TestReport) { t ->
|
task parallelCombinedTestReport(type: TestReport) { t ->
|
||||||
group "test"
|
group "test"
|
||||||
destinationDir = file("$reportDir")
|
destinationDirectory = file("$reportDir")
|
||||||
logger.debug("parallelCombinedTestReport: Using destinationDir = $reportDir")
|
logger.debug("parallelCombinedTestReport: Using destinationDir = $reportDir")
|
||||||
dependsOn ":deleteTestTempAndReportDirs"
|
dependsOn ":deleteTestTempAndReportDirs"
|
||||||
mustRunAfter ":deleteTestTempAndReportDirs"
|
mustRunAfter ":deleteTestTempAndReportDirs"
|
||||||
@ -385,7 +385,7 @@ task parallelCombinedTestReport(type: TestReport) { t ->
|
|||||||
task unitTestReport(type: TestReport) { t ->
|
task unitTestReport(type: TestReport) { t ->
|
||||||
group "test"
|
group "test"
|
||||||
description "Run unit tests and save HTML report."
|
description "Run unit tests and save HTML report."
|
||||||
destinationDir = file("$reportDir/unitTests")
|
destinationDirectory = file("$reportDir/unitTests")
|
||||||
outputs.upToDateWhen {false}
|
outputs.upToDateWhen {false}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -398,7 +398,7 @@ task unitTestReport(type: TestReport) { t ->
|
|||||||
task integrationTestReport(type: TestReport) { t ->
|
task integrationTestReport(type: TestReport) { t ->
|
||||||
group "test"
|
group "test"
|
||||||
description "Run integration tests and save HTML report."
|
description "Run integration tests and save HTML report."
|
||||||
destinationDir = file("$reportDir/integrationTests")
|
destinationDirectory = file("$reportDir/integrationTests")
|
||||||
outputs.upToDateWhen {false}
|
outputs.upToDateWhen {false}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -416,7 +416,7 @@ task integrationTestReport(type: TestReport) { t ->
|
|||||||
task targetedTestReport(type: TestReport) { t ->
|
task targetedTestReport(type: TestReport) { t ->
|
||||||
group "test"
|
group "test"
|
||||||
description "Run unit tests against a specific set of projects."
|
description "Run unit tests against a specific set of projects."
|
||||||
destinationDir = file("$reportDir/unitTests")
|
destinationDirectory = file("$reportDir/unitTests")
|
||||||
outputs.upToDateWhen {false}
|
outputs.upToDateWhen {false}
|
||||||
dependsOn ":deleteTestTempAndReportDirs"
|
dependsOn ":deleteTestTempAndReportDirs"
|
||||||
|
|
||||||
@ -560,7 +560,7 @@ configure(subprojects.findAll {parallelMode == true}) { subproject ->
|
|||||||
*********************************************************************************/
|
*********************************************************************************/
|
||||||
task combinedTestReport(type: TestReport) { t ->
|
task combinedTestReport(type: TestReport) { t ->
|
||||||
group "test"
|
group "test"
|
||||||
destinationDir = file("$reportDir")
|
destinationDirectory = file("$reportDir")
|
||||||
|
|
||||||
dependsOn ":deleteTestTempAndReportDirs"
|
dependsOn ":deleteTestTempAndReportDirs"
|
||||||
mustRunAfter ":deleteTestTempAndReportDirs"
|
mustRunAfter ":deleteTestTempAndReportDirs"
|
||||||
@ -574,7 +574,7 @@ task combinedTestReport(type: TestReport) { t ->
|
|||||||
*********************************************************************************/
|
*********************************************************************************/
|
||||||
task pcodeTestReport(type: TestReport) { t ->
|
task pcodeTestReport(type: TestReport) { t ->
|
||||||
group "pcodeTest"
|
group "pcodeTest"
|
||||||
destinationDir = file("$pcodeTestShareDir" + "/reports")
|
destinationDirectory = file("$pcodeTestShareDir" + "/reports")
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
|
@ -37,11 +37,9 @@ includeProject('JsonDoclet', 'GhidraBuild/BuildFiles', true)
|
|||||||
includeProject('LaunchSupport', 'GhidraBuild', true)
|
includeProject('LaunchSupport', 'GhidraBuild', true)
|
||||||
includeProject('Skeleton', 'GhidraBuild', true)
|
includeProject('Skeleton', 'GhidraBuild', true)
|
||||||
includeProject('BuildFiles', 'GhidraBuild', true)
|
includeProject('BuildFiles', 'GhidraBuild', true)
|
||||||
includeProject('GhidraTest', '.', true)
|
|
||||||
includeProject('decompile', 'Ghidra/Features/Decompiler/src', true)
|
includeProject('decompile', 'Ghidra/Features/Decompiler/src', true)
|
||||||
includeProject('RuntimeScripts', 'Ghidra', true)
|
includeProject('RuntimeScripts', 'Ghidra', true)
|
||||||
includeProject('IDAPro', 'GhidraBuild', true)
|
includeProject('IDAPro', 'GhidraBuild', true)
|
||||||
includeProject('NativeSupport', 'GhidraBuild', true)
|
|
||||||
includeProject('GhidraDocs', '.', true)
|
includeProject('GhidraDocs', '.', true)
|
||||||
includeProjects('GhidraBuild/EclipsePlugins/GhidraDev') // requires Eclipse PDE
|
includeProjects('GhidraBuild/EclipsePlugins/GhidraDev') // requires Eclipse PDE
|
||||||
includeProjects('GhidraBuild/EclipsePlugins/GhidraSleighEditor') // requires Eclipse DSL
|
includeProjects('GhidraBuild/EclipsePlugins/GhidraSleighEditor') // requires Eclipse DSL
|
||||||
|
Loading…
Reference in New Issue
Block a user