Allopen, Noarg: Implement old classpath elements filtering correctly (KT-15448)
This commit is contained in:
committed by
Yan Zhulanow
parent
f1b7d30363
commit
85450955b6
@@ -40,7 +40,7 @@ internal fun modifyCompilerArgumentsForPlugin(
|
|||||||
val newPluginOptions = oldPluginOptions + annotationOptions
|
val newPluginOptions = oldPluginOptions + annotationOptions
|
||||||
|
|
||||||
val oldPluginClasspaths = (commonArguments.pluginClasspaths ?: emptyArray()).filterTo(mutableListOf()) {
|
val oldPluginClasspaths = (commonArguments.pluginClasspaths ?: emptyArray()).filterTo(mutableListOf()) {
|
||||||
!it.substringAfterLast('/', missingDelimiterValue = "").matches("(kotlin-)?$pluginName-.*\\.jar".toRegex())
|
!it.substringAfterLast('/', missingDelimiterValue = "").matches("(kotlin-)?(maven-)?$pluginName-.*\\.jar".toRegex())
|
||||||
}
|
}
|
||||||
|
|
||||||
val newPluginClasspaths = oldPluginClasspaths + (setup?.classpath ?: emptyList())
|
val newPluginClasspaths = oldPluginClasspaths + (setup?.classpath ?: emptyList())
|
||||||
|
|||||||
Reference in New Issue
Block a user