mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Only run the interceptors if there are any.
Otherwise, we always clear the interceptors.
This commit is contained in:
parent
648ccc14b9
commit
56f59fc858
1 changed files with 7 additions and 3 deletions
|
@ -243,9 +243,13 @@ private class Main @Inject constructor(
|
|||
|
||||
private fun runClasspathInterceptors(project: Project, dependencies: ArrayList<IClasspathDependency>)
|
||||
= with(dependencies) {
|
||||
if (pluginInfo.classpathInterceptors.size > 0) {
|
||||
val deps = interceptDependencies(project, pluginInfo, this)
|
||||
clear()
|
||||
addAll(deps)
|
||||
} else {
|
||||
this
|
||||
}
|
||||
}
|
||||
|
||||
private fun interceptDependencies(project: Project, pluginInfo: PluginInfo,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue