I’m converting a fairly complex Ant build progressively to Gradle. I am able to create the JAR I want to distribute (well, nearly) using a custom Jar task. I override the standard jar task in the hope subsequent phases would use it.
If I use the textbook idiom
from components.java, I get a plausible POM, but the JAR I publish appears to have been made by some default jar task, created by the java-library plug-in I assume.
If I use the idiom
artifact jar, the JAR is right but the POM lacks all the dependency information. I’d be grateful for suggestions how to get Gradle to provide the right POM, preferebly using the depencency information already present.
This link will land you in my gradle.build at the publication clause: