From 2da9f86de85a29bb6b53b64967c2a71d78376d92 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 11 Aug 2016 03:19:36 -0800 Subject: [PATCH] Unnecessary parameter. --- .../src/main/kotlin/com/beust/kobalt/JarGenerator.kt | 3 +-- .../com/beust/kobalt/plugin/packaging/PackagingPlugin.kt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/JarGenerator.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/JarGenerator.kt index 43c7c0a8..0edc4ffc 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/JarGenerator.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/JarGenerator.kt @@ -4,7 +4,6 @@ import com.beust.kobalt.api.KobaltContext import com.beust.kobalt.api.Project import com.beust.kobalt.archive.Archives import com.beust.kobalt.archive.Jar -import com.beust.kobalt.internal.ParallelLogger import com.beust.kobalt.maven.DependencyManager import com.beust.kobalt.maven.aether.Scope import com.beust.kobalt.misc.* @@ -122,7 +121,7 @@ class JarGenerator @Inject constructor(val dependencyManager: DependencyManager) return result } - fun generateJar(project: Project, context: KobaltContext, jar: Jar, kobaltLog: ParallelLogger) : File { + fun generateJar(project: Project, context: KobaltContext, jar: Jar) : File { val includedFiles = findIncludedFiles(project, context, jar) // diff --git a/src/main/kotlin/com/beust/kobalt/plugin/packaging/PackagingPlugin.kt b/src/main/kotlin/com/beust/kobalt/plugin/packaging/PackagingPlugin.kt index 576af59b..6ffeedba 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/packaging/PackagingPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/packaging/PackagingPlugin.kt @@ -74,8 +74,7 @@ class PackagingPlugin @Inject constructor(val dependencyManager : DependencyMana { project -> try { packages.filter { it.project.name == project.name }.forEach { packageConfig -> - packageConfig.jars.forEach { jarGenerator.generateJar(packageConfig.project, context, it, - kobaltLog) } + packageConfig.jars.forEach { jarGenerator.generateJar(packageConfig.project, context, it) } packageConfig.wars.forEach { warGenerator.generateWar(packageConfig.project, context, it) } packageConfig.zips.forEach { zipGenerator.generateZip(packageConfig.project, context, it) } if (packageConfig.generatePom) {