Merge remote-tracking branch 'origin/GP-1_ghidragon_test_fixes_4_22_26'

This commit is contained in:
ghidra1
2026-05-04 14:53:08 -04:00
45 changed files with 1976 additions and 688 deletions

View File

@@ -339,6 +339,33 @@ def getCurrentDateTimeLong() {
return formattedDate
}
/*********************************************************************************
* Returns true if 'project' has a direct or transitive API project dependency
* on the project with path 'targetPath'. The 'targetPath' should be specified
* in the form ":<project-name>"
*********************************************************************************/
boolean hasApiProjectDependency(Project project, String targetPath) {
def visited = [] as Set
def walk
walk = { Project p ->
if (!visited.add(p)) return false
def apiDeps = p.configurations.api
.allDependencies
.withType(org.gradle.api.artifacts.ProjectDependency)
if (apiDeps.any { it.dependencyProject.path == targetPath }) {
return true
}
return apiDeps.any { dep -> walk(dep.dependencyProject) }
}
walk(project)
}
/*********************************************************************************
* Returns a list of all the external library paths declared as dependencies for the
* given project