Maven: don't scan target directories for annotations in multimodule project
#KT-7187 Fixed Maven K2JVM compiler scanning for annotations
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ public class K2JVMCompileMojo extends KotlinCompileMojoBase<K2JVMCompilerArgumen
|
|||||||
Set<Artifact> artifacts = project.getArtifacts();
|
Set<Artifact> artifacts = project.getArtifacts();
|
||||||
for (Artifact artifact : artifacts) {
|
for (Artifact artifact : artifacts) {
|
||||||
File file = artifact.getFile();
|
File file = artifact.getFile();
|
||||||
if (containsAnnotations(file, log)) {
|
if (file.isFile() && containsAnnotations(file, log)) {
|
||||||
log.info("Discovered kotlin annotations in: " + file);
|
log.info("Discovered kotlin annotations in: " + file);
|
||||||
try {
|
try {
|
||||||
annotations.add(file.getCanonicalPath());
|
annotations.add(file.getCanonicalPath());
|
||||||
|
|||||||
Reference in New Issue
Block a user