1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27: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:
Cedric Beust 2016-08-03 18:32:29 -08:00
parent 981e3fb5ac
commit 38495b0353

View file

@ -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)