Skip to content

Commit 0daa455

Browse files
authored
exclude parse kotlin files under path protos/build/generated (#237)
1 parent cd3fbd1 commit 0daa455

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/src/main/java/org/openrewrite/gradle/isolated/DefaultProjectParser.java

+2
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,9 @@ public Stream<SourceFile> parse(Project subproject, Set<Path> alreadyParsed, Exe
739739
}
740740

741741
if (subproject.getPlugins().hasPlugin("org.jetbrains.kotlin.jvm")) {
742+
String excludedProtosPath = subproject.getProjectDir().getPath() + "/protos/build/generated";
742743
List<Path> kotlinPaths = unparsedSources.stream()
744+
.filter(it -> !it.toString().startsWith(excludedProtosPath))
743745
.filter(it -> it.toString().endsWith(".kt"))
744746
.collect(toList());
745747

0 commit comments

Comments
 (0)