From 04810f4df8bfcefbd53273af5e0d7a3af9d90234 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Fri, 17 Feb 2017 13:32:43 -0800 Subject: [PATCH] Clear the list of dynamic plug-ins. --- src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt index 850f98ef..2f9db0fc 100644 --- a/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/app/BuildFileCompiler.kt @@ -63,6 +63,11 @@ class BuildFileCompiler @Inject constructor(@Assisted("buildFiles") val buildFil context.logger = parallelLogger Kobalt.context = context + // The list of dynamic plug-ins has to be a companion since it's modified directly from + // the build file, so make sure to reset it so that dynamic plug-ins don't bleed from + // one build compilation to the next + Plugins.dynamicPlugins.clear() + // // Find all the projects in the build file, possibly compiling them //