Skip to content

Commit

Permalink
Merge pull request #24826 from glefloch/fix/24770
Browse files Browse the repository at this point in the history
Only add existing classes directory to Gradle application model
  • Loading branch information
aloubyansky authored Apr 8, 2022
2 parents 19fc02f + f323a72 commit 2de79ec
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,9 @@ static ResolvedDependencyBuilder toDependency(ResolvedArtifact a, SourceSet s) {
PathList.Builder resolvedPathBuilder = PathList.builder();

for (File classesDir : s.getOutput().getClassesDirs()) {
resolvedPathBuilder.add(classesDir.toPath());
if (classesDir.exists()) {
resolvedPathBuilder.add(classesDir.toPath());
}
}
File resourceDir = s.getOutput().getResourcesDir();
if (resourceDir != null && resourceDir.exists()) {
Expand Down

0 comments on commit 2de79ec

Please sign in to comment.