mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix classpath.
This commit is contained in:
parent
276f9e9602
commit
af846f2e20
1 changed files with 6 additions and 5 deletions
|
@ -205,12 +205,13 @@ class DependencyManager @Inject constructor(val executors: KobaltExecutors, val
|
||||||
|
|
||||||
// Make sure that classes/ and test-classes/ are always at the top of this classpath,
|
// 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
|
// so that older versions of that project on the classpath don't shadow them
|
||||||
val result : ArrayList<IClasspathDependency> =
|
val result = arrayListOf<IClasspathDependency>().apply {
|
||||||
arrayListOf(FileDependency(KFiles.makeOutputDir(project).absolutePath))
|
if (isTest) {
|
||||||
if (isTest) {
|
add(FileDependency(KFiles.makeOutputDir(project).absolutePath))
|
||||||
result.add(FileDependency(KFiles.makeOutputTestDir(project).absolutePath))
|
add(FileDependency(KFiles.makeOutputTestDir(project).absolutePath))
|
||||||
|
}
|
||||||
|
addAll(reorderDependencies(transitive))
|
||||||
}
|
}
|
||||||
result.addAll(reorderDependencies(transitive))
|
|
||||||
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue