Skip to content

Choose a tag to compare

@shs96c shs96c released this 21 Apr 15:33
· 19 commits to master since this release
5482558

Please note The lock file format was changed in rules_jvm_external 5.1 and in 6.10. If you update and repin your dependencies, your lock file will use the new format.

Usage

This version of rules_jvm_external requires Bazel 7.7.1 or Bazel 8.6.0 or Bazel 9.

This release requires Java 11 or above to run, both as the host JDK and the build and tool JDK.

Bzlmod

In your MODULE.bazel file:

bazel_dep(name = "rules_jvm_external", version = "7.0")

To add dependencies, later in your MODULE.bazel file:

maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")

maven.install(
    artifacts = [
        "org.seleniumhq.selenium:selenium-java:4.43.0",
    ],
    lock_file = "//:maven_install.json",
)

use_repo(maven, "maven")

Using dependencies

In your BUILD.bazel file, reference the targets directly:

java_library(
    name = "example",
    exports = [
        "@maven//:org_seleniumhq_selenium_selenium_java",
    ],
)

What's Changed

  • Add support for classifier and exclusions fields in toml files by @staktrace in #1539
  • fix: Handle email-style usernames in Coursier cache path credentials by @vadikmironov in #1538
  • Remove workspace-based dependencies and ensure RJE works with Bazel 9 by @shs96c in #1536
  • Also handle the force_version field in the version catalog by @staktrace in #1542
  • Switch to toml.bzl for TOML parsing by @shs96c in #1540
  • Skip hash uploading for snapshots in MavenPublisher by @thirtyseven in #1544
  • fix: sort repositories in v3 lock file hash to match Java resolver order by @mfilippov in #1557
  • Upload primary artifact before uploading hashes in MavenPublisher by @thirtyseven in #1548

New Contributors

Full Changelog: 6.10...7.0