Skip to content

Commit

Permalink
exclude parse kotlin files under path protos/build/generated (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunli2 authored Oct 27, 2023
1 parent cd3fbd1 commit 0daa455
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,9 @@ public Stream<SourceFile> parse(Project subproject, Set<Path> alreadyParsed, Exe
}

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

Expand Down

0 comments on commit 0daa455

Please sign in to comment.