mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 16:07:12 -07:00
Don't add test-classes to the classpath if not building tests.
Fixes https://github.com/cbeust/kobalt/issues/214
This commit is contained in:
parent
981e3fb5ac
commit
38495b0353
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class DependencyManager @Inject constructor(val executors: KobaltExecutors, val
|
|||
|
||||
project.dependsOn.forEach { p ->
|
||||
maybeAddClassDir(KFiles.joinDir(p.directory, p.classesDir(context)))
|
||||
maybeAddClassDir(KFiles.makeOutputTestDir(project).path)
|
||||
if (scopeFilters.contains(Scope.TEST)) maybeAddClassDir(KFiles.makeOutputTestDir(project).path)
|
||||
val otherDependencies = calculateDependencies(p, context, scopeFilters)
|
||||
result.addAll(otherDependencies)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue