mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 01:39:21 +02:00
Revert "Improving how we discover external dependencies in gradle."
This reverts commit e550f9b656
.
This commit is contained in:
parent
75a90485a1
commit
ccabecec3a
1 changed files with 14 additions and 8 deletions
18
build.gradle
18
build.gradle
|
@ -296,16 +296,22 @@ List<String> getExternalDependencies(Project project) {
|
|||
|
||||
// for each dependency in the compile configuration
|
||||
Configuration runtimeConfig = project.configurations.runtime
|
||||
runtimeConfig.allDependencies.each { dep ->
|
||||
|
||||
// if the dependency is an external jar
|
||||
if (dep.class.toString().contains("DefaultExternalModuleDependency")) {
|
||||
|
||||
// loop back through all the dependency files, looking for one that contains the dependency name.
|
||||
String depPath = runtimeConfig.find {
|
||||
it.name.contains(dep.name)
|
||||
}
|
||||
|
||||
runtimeConfig.resolvedConfiguration.getFiles { dep ->
|
||||
dep.class.toString().contains("DefaultExternalModuleDependency")
|
||||
}.each { f ->
|
||||
// if we found the path, then add it to the list
|
||||
if (!f.getAbsolutePath().contains("libsForBuild")) {
|
||||
list.add(f)
|
||||
if (depPath && !depPath.contains("libsForBuild")) {
|
||||
list.add(depPath)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return list
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue