From cccff9e7b028745dc6c95d2d9901027d7436875e Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 24 Apr 2017 11:34:54 -0700 Subject: [PATCH] Refactor. --- src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt b/src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt index 5dacc296..ce5c0ec5 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/apt/AptPlugin.kt @@ -166,7 +166,6 @@ class AptPlugin @Inject constructor(val dependencyManager: DependencyManager, va // // Tell the Kotlin compiler to use the annotation plug-in // - val allDeps = allDependencies(project) flags.add("-Xplugin") flags.add(annotationProcessorDependency().jarFile.get().absolutePath) @@ -202,6 +201,7 @@ class AptPlugin @Inject constructor(val dependencyManager: DependencyManager, va // // Dependencies for the annotation plug-in and the generation // + val allDeps = allDependencies(project) val dependencies = dependencyManager.calculateDependencies(project, context, Filters.EXCLUDE_OPTIONAL_FILTER, listOf(Scope.COMPILE),