Releases: bazel-contrib/rules_jvm
Releases · bazel-contrib/rules_jvm
v0.3.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "contrib_rules_jvm",
sha256 = "79773625951a7a6dc0fc1636ef2388253b69a1e8109b34198c191953280648ab",
strip_prefix = "rules_jvm-0.3.0",
url = "https://github.com/bazel-contrib/rules_jvm/archive/v0.3.0.tar.gz",
)
# Fetches the contrib_rules_jvm dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
load("@contrib_rules_jvm//:repositories.bzl", "contrib_rules_jvm_deps")
contrib_rules_jvm_deps()
# Now ensure that the downloaded deps are properly configured
load("@contrib_rules_jvm//:setup.bzl", "contrib_rules_jvm_setup")
contrib_rules_jvm_setup()
Headline Features
This releases fixes a problem where Gazelle was required even if you didn't want to use the Gazelle plugin.
What's Changed
- Add two missing archive dependencies used by external system by @tjoneslo in #28
- Update the dependencies for the Gazelle rules by @tjoneslo in #30
- Expose freeze-deps as a buildable target by @shs96c in #31
- Gazelle Java plugin
- Only set --output_user_root in tests by @illicitonion in #24
- Stringify labels in error by @illicitonion in #25
- Implement proto reflection service by @illicitonion in #27
- Narrow filtering of imports in modules by @illicitonion in #26
New Contributors
- @illicitonion made their first contribution in #24
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Headline Features
- A Gazelle Java plugin to make generating and maintaining build files for Java projects that little bit nicer!
To Use
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "contrib_rules_jvm",
sha256 = "5d9d466a5756bc4540a03e41afddf8769ea02927ec5efb820cfc551da08ce515",
strip_prefix = "rules_jvm-0.2.0",
url = "https://github.com/bazel-contrib/rules_jvm/archive/v0.2.0.tar.gz",
)
# Fetches the contrib_rules_jvm dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
load("@contrib_rules_jvm//:repositories.bzl", "contrib_rules_jvm_deps")
contrib_rules_jvm_deps()
# Now ensure that the downloaded deps are properly configured
load("@contrib_rules_jvm//:setup.bzl", "contrib_rules_jvm_setup")
contrib_rules_jvm_setup()
What's Changed
- Add
ai
to common package prefixes by @rdesgroppes in #14 - PMD: replace deprecated -filelist with --file-list by @rdesgroppes in #15
- PMD: fix other deprecated command line arguments by @rdesgroppes in #16
- Update the freeze-deps.py to process compat-enabled repositories by @tjoneslo in #17
- Add formatting script by @stevebarrau in #20
- Add gazelle extension for Java by @stevebarrau in #19
- Regenerate readme prior to release by @shs96c in #22
New Contributors
- @rdesgroppes made their first contribution in #14
- @tjoneslo made their first contribution in #17
- @stevebarrau made their first contribution in #20
Full Changelog: v0.1.0...v0.2.0
v0.1.0
What's Changed
- Allow
java_test_suite
to take a package name as an attribute by @shs96c in #6 - Add data param to checkstyle_config and tests by @thirtyseven in #9
- Allow the checkstyle binary to be configured by @shs96c in #11
- Allow the spotbugs binary to be selected by the user by @shs96c in #12
- Make PMD binary configurable by @shs96c in #13
New Contributors
- @thirtyseven made their first contribution in #9
Usage
In your WORKSPACE
file, add:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "contrib_rules_jvm",
sha256 = "f27b6a86481e78f659a5213978056aa88344041858548d76a1baba56a1e6048c",
strip_prefix = "rules_jvm-0.1.0",
url = "https://github.com/bazel-contrib/rules_jvm/archive/v0.1.0.tar.gz",
)
# Fetches the contrib_rules_jvm dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
load("@contrib_rules_jvm//:repositories.bzl", "contrib_rules_jvm_deps")
contrib_rules_jvm_deps()
# Now ensure that the downloaded deps are properly configured
load("@contrib_rules_jvm//:setup.bzl", "contrib_rules_jvm_setup")
contrib_rules_jvm_setup()
Full Changelog: v0.0.1...v0.1.0
v0.0.1
What's Changed
First release! Features include:
java_test_suite
to generate test targets from aglob
of sources.java_junit5_test
to allow JUnit5 tests to be run. This is a drop-in replacement forjava_test
, and is integrated intojava_test_suite
if therunner = "junit5"
attribute is set.- Integation of apple_rules_lint providing linters for checkstyle, pmd, and spotbugs. This is done via macros for
java_library
,java_test
, andjava_export
.
Usage
In your WORKSPACE
file, add:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "contrib_rules_jvm",
sha256 = "39ddc3b35f42ca42fd7f9fc0d912d75201264f58aac3e37ed16cb4ed203654e2",
strip_prefix = "rules_jvm-0.0.1",
url = "https://github.com/bazel-contrib/rules_jvm/archive/v0.0.1.tar.gz",
)
# Fetches the contrib_rules_jvm dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
load("@contrib_rules_jvm//:repositories.bzl", "contrib_rules_jvm_deps")
contrib_rules_jvm_deps()
# Now ensure that the downloaded deps are properly configured
load("@contrib_rules_jvm//:setup.bzl", "contrib_rules_jvm_setup")
contrib_rules_jvm_setup()
Full Changelog: https://github.com/bazel-contrib/rules_jvm/commits/v0.0.1