mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Bug: multiple dependent projects were not creating correct jars.
This commit is contained in:
parent
57e0a62fca
commit
864b0f22e1
1 changed files with 12 additions and 15 deletions
|
@ -155,22 +155,19 @@ class PackagingPlugin @Inject constructor(val dependencyManager : DependencyMana
|
|||
@Suppress("UNCHECKED_CAST")
|
||||
val dependentProjects = project.projectProperties.get(JvmCompilerPlugin.DEPENDENT_PROJECTS)
|
||||
as List<ProjectDescription>
|
||||
listOf(dependencyManager.calculateDependencies(project, context, dependentProjects,
|
||||
project.compileDependencies),
|
||||
dependencyManager.calculateDependencies(project, context, dependentProjects,
|
||||
project.compileRuntimeDependencies))
|
||||
.forEach { deps : List<IClasspathDependency> ->
|
||||
deps.map {
|
||||
it.jarFile.get()
|
||||
}.forEach { file : File ->
|
||||
if (! seen.contains(file.name)) {
|
||||
seen.add(file.name)
|
||||
if (! KFiles.isExcluded(file, jar.excludes)) {
|
||||
allFiles.add(IncludedFile(arrayListOf(FileSpec(file.path))))
|
||||
}
|
||||
}
|
||||
}
|
||||
val allDependencies = project.compileDependencies + project.compileRuntimeDependencies
|
||||
val transitiveDependencies = dependencyManager.calculateDependencies(project, context, dependentProjects,
|
||||
allDependencies)
|
||||
transitiveDependencies.map {
|
||||
it.jarFile.get()
|
||||
}.forEach { file : File ->
|
||||
if (! seen.contains(file.path)) {
|
||||
seen.add(file.path)
|
||||
if (! KFiles.isExcluded(file, jar.excludes)) {
|
||||
allFiles.add(IncludedFile(arrayListOf(FileSpec(file.path))))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue