diff --git a/src/main/kotlin/com/beust/kobalt/Main.kt b/src/main/kotlin/com/beust/kobalt/Main.kt index ac32669d..246c09d1 100644 --- a/src/main/kotlin/com/beust/kobalt/Main.kt +++ b/src/main/kotlin/com/beust/kobalt/Main.kt @@ -243,9 +243,13 @@ private class Main @Inject constructor( private fun runClasspathInterceptors(project: Project, dependencies: ArrayList) = with(dependencies) { - val deps = interceptDependencies(project, pluginInfo, this) - clear() - addAll(deps) + if (pluginInfo.classpathInterceptors.size > 0) { + val deps = interceptDependencies(project, pluginInfo, this) + clear() + addAll(deps) + } else { + this + } } private fun interceptDependencies(project: Project, pluginInfo: PluginInfo,