We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68d5a4 commit 37ed286Copy full SHA for 37ed286
1 file changed
test-app/app/build.gradle
@@ -531,6 +531,20 @@ afterEvaluate { project ->
531
}.artifacts.each {
532
processJar(it.file, jars)
533
}
534
+
535
+ def projectDependencies = config.getAllDependencies().withType(ProjectDependency)
536
+ def dependentProjects = projectDependencies*.dependencyProject
537
+ dependentProjects.findAll {
538
+ // if there's a project dependency search for its result jar file in the build/intermediates/runtime_library_classes folder
539
+ def jarDir = new File("${it.getBuildDir()}/intermediates/runtime_library_classes/${buildType.toLowerCase()}")
540
+ if(jarDir.exists()) {
541
+ jarDir.eachFileRecurse(FileType.FILES) { file ->
542
+ if (file.path.endsWith(".jar")) {
543
+ processJar(file, jars)
544
+ }
545
546
547
548
549
550
0 commit comments