mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Refactor.
This commit is contained in:
parent
8bfc671c27
commit
922602f01a
1 changed files with 14 additions and 12 deletions
|
@ -194,11 +194,12 @@ class DependencyManager @Inject constructor(val executors: KobaltExecutors, val
|
|||
: List<IClasspathDependency> {
|
||||
val transitive = hashSetOf<IClasspathDependency>()
|
||||
with(project) {
|
||||
context.variant.let { variant ->
|
||||
val deps = arrayListOf(compileDependencies, compileProvidedDependencies,
|
||||
context.variant.buildType.compileDependencies,
|
||||
context.variant.buildType.compileProvidedDependencies,
|
||||
context.variant.productFlavor.compileDependencies,
|
||||
context.variant.productFlavor.compileProvidedDependencies
|
||||
variant.buildType.compileDependencies,
|
||||
variant.buildType.compileProvidedDependencies,
|
||||
variant.productFlavor.compileDependencies,
|
||||
variant.productFlavor.compileProvidedDependencies
|
||||
)
|
||||
if (isTest) {
|
||||
deps.add(testDependencies)
|
||||
|
@ -208,6 +209,7 @@ class DependencyManager @Inject constructor(val executors: KobaltExecutors, val
|
|||
transitive.addAll(calculateDependencies(project, context, it))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue