Do not skip maven compilation if sources contain .kts files but no .kt files
#KT-34006 fixed
This commit is contained in:
+2
-1
@@ -231,7 +231,8 @@ public abstract class KotlinCompileMojoBase<A extends CommonCompilerArguments> e
|
|||||||
private boolean hasKotlinFilesInSources() throws MojoExecutionException {
|
private boolean hasKotlinFilesInSources() throws MojoExecutionException {
|
||||||
for (File root : getSourceDirs()) {
|
for (File root : getSourceDirs()) {
|
||||||
if (root.exists()) {
|
if (root.exists()) {
|
||||||
boolean sourcesExists = !FileUtil.processFilesRecursively(root, file -> !file.getName().endsWith(".kt"));
|
boolean sourcesExists =
|
||||||
|
!FileUtil.processFilesRecursively(root, file -> !file.getName().endsWith(".kt") && !file.getName().endsWith(".kts"));
|
||||||
if (sourcesExists) return true;
|
if (sourcesExists) return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user