From ce73e203a0be839191635063b4f4e15fba69fc34 Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Fri, 22 Sep 2023 23:33:10 +0200 Subject: [PATCH] Makes sure `.kt` sources are contained in `listSources()` (#225) --- .../org/openrewrite/gradle/isolated/DefaultProjectParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/org/openrewrite/gradle/isolated/DefaultProjectParser.java b/plugin/src/main/java/org/openrewrite/gradle/isolated/DefaultProjectParser.java index fd1ee6f1d..8afe696f9 100644 --- a/plugin/src/main/java/org/openrewrite/gradle/isolated/DefaultProjectParser.java +++ b/plugin/src/main/java/org/openrewrite/gradle/isolated/DefaultProjectParser.java @@ -273,7 +273,7 @@ public Collection listSources() { JavaPluginConvention javaConvention = project.getConvention().findPlugin(JavaPluginConvention.class); if (javaConvention != null) { for (SourceSet sourceSet : javaConvention.getSourceSets()) { - sourceSet.getAllJava().getFiles().stream() + sourceSet.getAllSource().getFiles().stream() .filter(it -> it.isFile() && (it.getName().endsWith(".java") || it.getName().endsWith(".kt"))) .map(File::toPath) .map(Path::toAbsolutePath)