spawlak
07/30/2018, 9:16 AMjar {
into("META-INF/maven/$project.group/$project.name") {
from { generatePomFileForMavenJavaPublication }
rename ".*", "pom.xml"
}
}
How do I apply it in Kotlin DSL? The task generatePomFileForMavenJavaPublication
is generated automatically, what should be supplied in from()
? I have tried task/task name and suppliers but not luck.
Also can I somehow include this configuration inside the publishing (Maven Publish) section instead to avoid logical circular dependency (jar depends on generatePom from Maven Publish and Maven Publish depend on jar artifact)