1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

[GITHUB-214] Extra "test-classes" directory in the classpath.

Fix https://github.com/cbeust/kobalt/issues/214
This commit is contained in:
Cedric Beust 2016-05-30 12:22:08 -07:00
parent 0850444863
commit 31b79c7e50

View file

@ -208,9 +208,13 @@ 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 result = listOf(FileDependency(KFiles.makeOutputDir(project).absolutePath),
FileDependency(KFiles.makeOutputTestDir(project).absolutePath)) +
reorderDependencies(transitive)
val result : ArrayList<IClasspathDependency> =
arrayListOf(FileDependency(KFiles.makeOutputDir(project).absolutePath))
if (isTest) {
result.add(FileDependency(KFiles.makeOutputTestDir(project).absolutePath))
}
result.addAll(reorderDependencies(transitive))
return result
}