diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/DependencyManager.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/DependencyManager.kt index 4bb33316..592bbe82 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/DependencyManager.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/DependencyManager.kt @@ -180,7 +180,7 @@ class DependencyManager @Inject constructor(val executors: KobaltExecutors, val // Make sure that classes/ and test-classes/ are always at the top of this classpath, // so that older versions of that project on the classpath don't shadow them - val result2 = arrayListOf(FileDependency(KFiles.makeOutputDir(project).absolutePath), + val result2 = listOf(FileDependency(KFiles.makeOutputDir(project).absolutePath), FileDependency(KFiles.makeOutputTestDir(project).absolutePath)) + reorderDependencies(result) return result2