mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
parent
6e32b4ade2
commit
d04879dde5
1 changed files with 4 additions and 8 deletions
|
@ -28,7 +28,10 @@ class AptPlugin @Inject constructor(val dependencyManager: DependencyManager, va
|
|||
val result =
|
||||
if (config != null) {
|
||||
listOf(File(
|
||||
KFiles.joinDir(KFiles.KOBALT_BUILD_DIR, config.outputDir, context.variant.toIntermediateDir())))
|
||||
KFiles.joinDir(project.directory,
|
||||
KFiles.KOBALT_BUILD_DIR,
|
||||
config.outputDir,
|
||||
context.variant.toIntermediateDir())))
|
||||
} else {
|
||||
emptyList()
|
||||
}
|
||||
|
@ -54,13 +57,6 @@ class AptPlugin @Inject constructor(val dependencyManager: DependencyManager, va
|
|||
val result = arrayListOf<String>()
|
||||
configurationFor(project)?.let { config ->
|
||||
aptDependencies[project.name]?.let { aptDependencies ->
|
||||
val deps = aptDependencies.map { dependencyManager.create(it) }
|
||||
|
||||
val dependencies = context.dependencyManager.calculateDependencies(null, context, emptyList(), deps)
|
||||
.map { it.jarFile.get().path }
|
||||
|
||||
result.add("-processorpath")
|
||||
result.add((dependencies).joinToString(":"))
|
||||
result.add("-s")
|
||||
result.add(generated(project, context, config.outputDir))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue