Skip to content

Commit

Permalink
Makes sure .kt sources are contained in listSources() (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden authored Sep 22, 2023
1 parent 903faa8 commit ce73e20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public Collection<Path> 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)
Expand Down

0 comments on commit ce73e20

Please sign in to comment.