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,18 +194,20 @@ class DependencyManager @Inject constructor(val executors: KobaltExecutors, val
|
||||||
: List<IClasspathDependency> {
|
: List<IClasspathDependency> {
|
||||||
val transitive = hashSetOf<IClasspathDependency>()
|
val transitive = hashSetOf<IClasspathDependency>()
|
||||||
with(project) {
|
with(project) {
|
||||||
val deps = arrayListOf(compileDependencies, compileProvidedDependencies,
|
context.variant.let { variant ->
|
||||||
context.variant.buildType.compileDependencies,
|
val deps = arrayListOf(compileDependencies, compileProvidedDependencies,
|
||||||
context.variant.buildType.compileProvidedDependencies,
|
variant.buildType.compileDependencies,
|
||||||
context.variant.productFlavor.compileDependencies,
|
variant.buildType.compileProvidedDependencies,
|
||||||
context.variant.productFlavor.compileProvidedDependencies
|
variant.productFlavor.compileDependencies,
|
||||||
)
|
variant.productFlavor.compileProvidedDependencies
|
||||||
if (isTest) {
|
)
|
||||||
deps.add(testDependencies)
|
if (isTest) {
|
||||||
deps.add(testProvidedDependencies)
|
deps.add(testDependencies)
|
||||||
}
|
deps.add(testProvidedDependencies)
|
||||||
deps.filter { it.any() }.forEach {
|
}
|
||||||
transitive.addAll(calculateDependencies(project, context, it))
|
deps.filter { it.any() }.forEach {
|
||||||
|
transitive.addAll(calculateDependencies(project, context, it))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue