Move list out of task configuration for better readability
@@ -32,10 +32,6 @@ class ShadedArtifactsPlugin: Plugin<Project> {
private
fun Project.configureShadowJarTask(shaded: Configuration): TaskProvider<ShadowJar> {
- return tasks.named<ShadowJar>("shadowJar") {
- classifier = null
- configurations = listOf(shaded)
- mergeServiceFiles()
val packagesToRelocate = listOf(
"javassist",
"org.glassfish",
@@ -54,6 +50,10 @@ class ShadedArtifactsPlugin: Plugin<Project> {
"net.sf",
"org.objectweb"
)
+ return tasks.named<ShadowJar>("shadowJar") {
+ classifier = null
+ configurations = listOf(shaded)
+ mergeServiceFiles()
for (pkg in packagesToRelocate) {
relocate(pkg, "com.bmuschko.gradle.docker.shaded.$pkg")
}
