Don't overwrite plugin classpaths detected earlier for annotation processing. Fixes #KT-18022
This commit is contained in:
committed by
Yan Zhulanow
parent
3770786075
commit
9a40e9b96d
+11
-3
@@ -466,10 +466,18 @@ public abstract class KotlinCompileMojoBase<A extends CommonCompilerArguments> e
|
||||
|
||||
List<String> pluginClassPaths = getCompilerPluginClassPaths();
|
||||
if (pluginClassPaths != null && !pluginClassPaths.isEmpty()) {
|
||||
if (getLog().isDebugEnabled()) {
|
||||
getLog().debug("Plugin classpaths are: " + Joiner.on(", ").join(pluginClassPaths));
|
||||
if (arguments.pluginClasspaths == null || arguments.pluginClasspaths.length == 0) {
|
||||
arguments.pluginClasspaths = pluginClassPaths.toArray(new String[pluginClassPaths.size()]);
|
||||
} else {
|
||||
for (String path : pluginClassPaths) {
|
||||
arguments.pluginClasspaths = ArrayUtil.append(arguments.pluginClasspaths, path);
|
||||
}
|
||||
}
|
||||
arguments.pluginClasspaths = pluginClassPaths.toArray(new String[pluginClassPaths.size()]);
|
||||
|
||||
if (getLog().isDebugEnabled()) {
|
||||
getLog().debug("Plugin classpaths are: " + Joiner.on(", ").join(arguments.pluginClasspaths));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
List<String> pluginArguments;
|
||||
|
||||
Reference in New Issue
Block a user