mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Warnings.
This commit is contained in:
parent
a33c5b0bd0
commit
b1a4508d03
1 changed files with 2 additions and 0 deletions
|
@ -92,10 +92,12 @@ class ApplicationPlugin @Inject constructor(val executors: KobaltExecutors,
|
||||||
|
|
||||||
private fun runJarFile(project: Project, config: ApplicationConfig) : TaskResult {
|
private fun runJarFile(project: Project, config: ApplicationConfig) : TaskResult {
|
||||||
val jarName = project.projectProperties.get(PackagingPlugin.JAR_NAME) as String
|
val jarName = project.projectProperties.get(PackagingPlugin.JAR_NAME) as String
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
val packages = project.projectProperties.get(PackagingPlugin.PACKAGES) as List<PackageConfig>
|
val packages = project.projectProperties.get(PackagingPlugin.PACKAGES) as List<PackageConfig>
|
||||||
val allDeps = arrayListOf(jarName)
|
val allDeps = arrayListOf(jarName)
|
||||||
val java = JavaInfo.create(File(SystemProperties.javaBase)).javaExecutable!!
|
val java = JavaInfo.create(File(SystemProperties.javaBase)).javaExecutable!!
|
||||||
if (! isFatJar(packages, jarName)) {
|
if (! isFatJar(packages, jarName)) {
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
val projDeps = project.projectProperties.get(JvmCompilerPlugin.DEPENDENT_PROJECTS)
|
val projDeps = project.projectProperties.get(JvmCompilerPlugin.DEPENDENT_PROJECTS)
|
||||||
as List<ProjectDescription>
|
as List<ProjectDescription>
|
||||||
// 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue