mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -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")
|
||||
// If the jar file is not fat, we need to add the transitive closure of all dependencies
|
||||
// on the classpath
|
||||
val allDependencies = project.compileDependencies + project.compileRuntimeDependencies
|
||||
val allTheDependencies =
|
||||
dependencyManager.calculateDependencies(project, context,
|
||||
allDependencies = project.compileDependencies).map { it.jarFile.get().path }
|
||||
dependencyManager.calculateDependencies(project, context, allDependencies = allDependencies)
|
||||
.map { it.jarFile.get().path }
|
||||
allDeps.addAll(allTheDependencies)
|
||||
}
|
||||
val allDepsJoined = allDeps.joinToString(File.pathSeparator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue