mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Reformat.
This commit is contained in:
parent
a9b8594a83
commit
7ae8f190b1
1 changed files with 14 additions and 11 deletions
|
@ -67,17 +67,20 @@ class PackagingPlugin @Inject constructor(val dependencyManager : DependencyMana
|
||||||
* skipped.
|
* skipped.
|
||||||
*/
|
*/
|
||||||
override fun assemble(project: Project, context: KobaltContext) : IncrementalTaskInfo {
|
override fun assemble(project: Project, context: KobaltContext) : IncrementalTaskInfo {
|
||||||
return IncrementalTaskInfo({ null }, { null }, { project ->
|
return IncrementalTaskInfo(
|
||||||
try {
|
{ null },
|
||||||
packages.filter { it.project.name == project.name }.forEach { pkg ->
|
{ null },
|
||||||
pkg.jars.forEach { jarGenerator.generateJar(pkg.project, context, it) }
|
{ project ->
|
||||||
pkg.wars.forEach { warGenerator.generateWar(pkg.project, context, it) }
|
try {
|
||||||
pkg.zips.forEach { zipGenerator.generateZip(pkg.project, context, it) }
|
packages.filter { it.project.name == project.name }.forEach { packageConfig ->
|
||||||
if (pkg.generatePom) {
|
packageConfig.jars.forEach { jarGenerator.generateJar(packageConfig.project, context, it) }
|
||||||
pomFactory.create(project).generate()
|
packageConfig.wars.forEach { warGenerator.generateWar(packageConfig.project, context, it) }
|
||||||
}
|
packageConfig.zips.forEach { zipGenerator.generateZip(packageConfig.project, context, it) }
|
||||||
}
|
if (packageConfig.generatePom) {
|
||||||
TaskResult()
|
pomFactory.create(project).generate()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TaskResult()
|
||||||
} catch(ex: Exception) {
|
} catch(ex: Exception) {
|
||||||
throw KobaltException(ex)
|
throw KobaltException(ex)
|
||||||
}}, context)
|
}}, context)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue