mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix runtime dependencies.
Fixes https://github.com/cbeust/kobalt/issues/283
This commit is contained in:
parent
d5a21c2c1a
commit
e1880616a8
1 changed files with 3 additions and 2 deletions
|
@ -103,9 +103,10 @@ class ApplicationPlugin @Inject constructor(val configActor: ConfigActor<Applica
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
// If the jar file is not fat, we need to add the transitive closure of all dependencies
|
// If the jar file is not fat, we need to add the transitive closure of all dependencies
|
||||||
// on the classpath
|
// on the classpath
|
||||||
|
val allDependencies = project.compileDependencies + project.compileRuntimeDependencies
|
||||||
val allTheDependencies =
|
val allTheDependencies =
|
||||||
dependencyManager.calculateDependencies(project, context,
|
dependencyManager.calculateDependencies(project, context, allDependencies = allDependencies)
|
||||||
allDependencies = project.compileDependencies).map { it.jarFile.get().path }
|
.map { it.jarFile.get().path }
|
||||||
allDeps.addAll(allTheDependencies)
|
allDeps.addAll(allTheDependencies)
|
||||||
}
|
}
|
||||||
val allDepsJoined = allDeps.joinToString(File.pathSeparator)
|
val allDepsJoined = allDeps.joinToString(File.pathSeparator)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue