rules_jvm_external
rules_jvm_external copied to clipboard
Extra maven artifacts support for java_export rule
Issue: Java_export needs to upload multiple artifacts as part of single rule. Artifacts could be war/tar files and it needs to support classifier.
Example: BUILD: java_export( name = "example-export", extra_artifacts = { "release": "//src/main/java/com/github/bazelbuild/rulesjvmexternal/example/export:tar", }, maven_coordinates = "com.example:bazel-example:0.0.1", runtime_deps = [ "//src/main/java/com/github/bazelbuild/rulesjvmexternal/example/export", ], )
bazel run -define "maven_repo=file://$HOME/.m2/repository" :example-export.publish
@cheister I have made one more commit towards templating maven coordinates. Could you please check?
@cheister could you please review and approve if you are fine with changes
@cheister could you please review and approve if you are fine with changes
@krisnaru, can I help you in any way to get this one over the line? It'd be lovely to have this in the tree....
I have continued the work in this PR in #926 .
Is there any intention/support for extra classifier artifacts being in the BOM too? Would be useful for things like test-jars that sometime get published and depended on.
Is there any intention/support for extra classifier artifacts being in the BOM too? Would be useful for things like test-jars that sometime get published and depended on.
@cjohnstoniv We didn't need that for our use team's use case, but I'm sure it would make sense to extend this to the BOM if you want to contribute a PR.