I would like to fetch/download only! a POM file from a properly published (with metadata) artifact.
It is easy to write a task downloading jars only
task getArtifacts(type: Copy) {
from configurations.myConf
into myWorkingDir
}
and setting the transitive flag to false for myConf(iguration).
But how to download the related POM files only!
The real reason for this is: I obfuscate the downloaded jars, then deploy them back to the repository as an obfuscated version. But I would like provide the pom metadata for the obfuscated artifacts … just using artifacts.add(xxx.pom) before publicizing.
Maybe you know any other idea how to implement the publication of obfuscated jars with metadata in Gradle?
question from:https://stackoverflow.com/questions/65833426/downloading-only-a-pom-file-from-maven-jfrog-repository