mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
[GITHUB-214] Extra "test-classes" directory in the classpath.
Fix https://github.com/cbeust/kobalt/issues/214
This commit is contained in:
parent
0850444863
commit
31b79c7e50
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue