Major refactoring of the gradle build system.

This commit is contained in:
ghidravore
2019-04-09 11:59:17 -04:00
parent 62a180e0ae
commit f1e50fb079
198 changed files with 2005 additions and 2252 deletions
+15 -12
View File
@@ -1,29 +1,32 @@
apply from: "$rootProject.projectDir/gradle/javaProject.gradle"
apply from: "$rootProject.projectDir/gradle/javaTestProject.gradle"
apply plugin: 'eclipse'
eclipse.project.name = '_Integration Test'
ext.excludeFromBuild = true
/*********************************************************************************
* Build dependencies
*********************************************************************************/
dependencies {
// integration test module may depends on all other projects within this repo
def ghidraPath = projectDir.getParentFile().getParentFile().path.replace(File.separator, "/") + "/";
rootProject.subprojects.each { p ->
def projectPath = p.projectDir.path.replace(File.separator, "/")
if (projectPath.startsWith(ghidraPath) && (
projectPath.contains("/Framework/") ||
projectPath.contains("/Features/") ||
projectPath.contains("/Processors/"))) {
compile p
}
rootProject.subprojects { p ->
p.plugins.withType(JavaPlugin) {
def projectPath = p.projectDir.path.replace(File.separator, "/")
if (projectPath.contains("ghidra/Ghidra")) {
if (projectPath.contains("/Framework/") ||
projectPath.contains("/Features/") ||
projectPath.contains("/Processors/")) {
compile p
}
}
}
}
// some tests use classes in Base/src/test and test.slow
testCompile project(':Base').sourceSets.test.output
}