madhead
06/27/2017, 8:10 AMjar
) then this:
(tasks["jar"] as Jar).apply {
(manifest as OsgiManifest).apply {
name = "..."
symbolicName = "..."
vendor = "..."
instruction(
"Import-Package", "a.b.c"
)
}
}
?dagguh
06/27/2017, 10:04 AMapply
“magic”Czar
06/27/2017, 10:41 AMtasks.withType<Jar> {
manifest {
(this as OsgiManifest).name = "..."
symbolicName = "..."
vendor = "..."
instruction("Import-Package", "a.b.c")
}
}
This will not work correctly, if you have more than one task of type Jar, because this style applies configuration to all tasks of given type. I have no idea if that's possible, though.madhead
06/27/2017, 1:28 PM