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)