rules_jvm_external
rules_jvm_external copied to clipboard
Bazel rules to resolve, fetch and export Maven artifacts
I am running the pinning with: ```shell RJE_MAX_THREADS=20 RJE_UNSAFE_CACHE=0 REPIN=1 bazel run @maven//:pin ``` Running the command multiple times could get you back to the original state as well... Here's...
``` # MODULE.bazel bazel_dep(name = "rules_java", version = "7.6.4") bazel_dep(name = "rules_jvm_external", version = "6.1") maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") version_keycloak = "23.0.7" maven.install( artifacts = [ "jakarta.ws.rs:jakarta.ws.rs-api:3.1.0", ], fail_if_repin_required =...
I've run into an interesting bug in my environment, where while on a linux machine, I am setting the `$HOME` variable (as a (very) poor-man's sandbox), and this breaks coursier's...
# user_project/WORKSPACE load("@my_library//:library_deps.bzl", "MY_LIBRARY_ARTIFACTS") maven_install( artifacts = [ "junit:junit:4.11", "com.google.guava:guava:26.0-jre", ] + MY_LIBRARY_ARTIFACTS, ) How does bzlmod support this?
Fix docs to correctly use no-javadocs instead of no-javadoc which does not work.
Coursier/rules_jvm_external are emitting warnings from the JVM about use of the -noverify option: ``` external/bazel_tools/jdk/bin/java -noverify -jar external/rules_jvm_external~~maven~unpinned_maven2/coursier --help OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated...
We started using the BOM resolver and I've been asked a couple of times this week which BOM is this version coming from. Would be nice to have this information...
As far as I can tell all the uses of http_file in the MODULE.bazel are dev dependencies, therefore they're easy to move to the WORKSPACE.bzlmod to avoid using the bazel...
This is to help caching in Gitlab CI. Gitlab CI only allows caching things that are in the cloned repo. When working with Maven, we do something like `-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository`. Would...
1. Update rules_jvm_external to use the Starlark version of aar_import automatically if the version of Bazel used does not contain the native version of aar_import. 1. This also updates the...