From 7ae8f190b17c9bb7d10768b097b9c0ef65cbbd15 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 7 Jun 2016 21:15:18 -0800 Subject: [PATCH] Reformat. --- .../plugin/packaging/PackagingPlugin.kt | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) 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 aba925bc..3b1dd5b9 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/packaging/PackagingPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/packaging/PackagingPlugin.kt @@ -67,17 +67,20 @@ class PackagingPlugin @Inject constructor(val dependencyManager : DependencyMana * skipped. */ override fun assemble(project: Project, context: KobaltContext) : IncrementalTaskInfo { - return IncrementalTaskInfo({ null }, { null }, { project -> - try { - packages.filter { it.project.name == project.name }.forEach { pkg -> - pkg.jars.forEach { jarGenerator.generateJar(pkg.project, context, it) } - pkg.wars.forEach { warGenerator.generateWar(pkg.project, context, it) } - pkg.zips.forEach { zipGenerator.generateZip(pkg.project, context, it) } - if (pkg.generatePom) { - pomFactory.create(project).generate() - } - } - TaskResult() + return IncrementalTaskInfo( + { null }, + { null }, + { project -> + try { + packages.filter { it.project.name == project.name }.forEach { packageConfig -> + 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) { + pomFactory.create(project).generate() + } + } + TaskResult() } catch(ex: Exception) { throw KobaltException(ex) }}, context)