Releases: bazel-contrib/rules_jvm
Releases · bazel-contrib/rules_jvm
v0.7.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "contrib_rules_jvm",
sha256 = "59af045d288ad3e2d9000b1cddb1135f889d798830f7106a4792cc95427bcd99",
strip_prefix = "rules_jvm-0.7.0",
url = "https://github.com/bazel-contrib/rules_jvm/archive/refs/tags/v0.7.0.zip",
)
# 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
- Load dependency from correct repository by @illicitonion in #97
Full Changelog: v0.6.0...v0.7.0
v0.6.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "contrib_rules_jvm",
sha256 = "eb4e9c2847b3044740e7e74d658381a06411bcba961ec1908dc2737de721238b",
strip_prefix = "rules_jvm-0.6.0",
url = "https://github.com/bazel-contrib/rules_jvm/archive/refs/tags/v0.6.0.zip",
)
# 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
- gazelle: Fix deps ordering when using #keep by @stevebarrau in #40
- Use rules_jvm_external install for package index by @illicitonion in #49
- Correct a typo in a function name by @shs96c in #51
- Update the rules_jvm_external rules tp latest release by @tjoneslo in #52
- Flesh out tests for java_test and java_test_suite generation by @illicitonion in #50
- Add java_extension directive by @stevebarrau in #53
- Fix up helper library generation by @illicitonion in #54
- Deduplicate and sort imports by @illicitonion in #55
- Fix up helper file deps by @illicitonion in #56
- Split proto generation into a separate java package by @illicitonion in #57
- Update bazel gazelle by @tjoneslo in #59
- fix: Register missing known directive by @stevebarrau in #60
- Reduce generate to a single codepath by @illicitonion in #58
- java_test_suite: Deduplicate dependencies by @illicitonion in #61
- feat(gazelle): Add resolution integration tests. by @blorente in #62
- Delete non-server mode by @illicitonion in #63
- Use java tools parser by @tjoneslo in #67
- Stop fetching output base by @illicitonion in #69
- Enforce format checks as part of CI by @illicitonion in #71
- Remove unused function by @illicitonion in #72
- Move filter-imports from wrapper binary to generate by @illicitonion in #73
- Remove obsolete resolves by @illicitonion in #76
- Migrate tests to use Gazelle's integration test runner by @illicitonion in #75
- Support junit4 and junit5 tests properly by @illicitonion in #77
- Allow setting test attributes based on annotations by @illicitonion in #78
- Remove unused function by @illicitonion in #74
- Report spotbugs issues to stderr not stdout by @illicitonion in #66
- Add three internal library prefixes to the stdLibPrefixes packages by @tjoneslo in #82
- ParameterizedTest is still a junit5 test by @illicitonion in #80
- Add classifier support to maven targets by @illicitonion in #83
- Also detect JUnit Pioneer imports imply JUnit 5 by @rdesgroppes in #85
- Set the Java language level to 11 by @shs96c in #87
- Remove duplication by making
java_test_suiteusejava_junit5_testby @shs96c in #88 - Avoid Java 17 printing a warning about the SecurityManager by @shs96c in #89
- Suppress warnings about security manager on java 17 by @shs96c in #90
- Add
junit-platform-suiteto runner filters by @rdesgroppes in #91 - Register super class to suppress warning (java 17) by @rdesgroppes in #92
- Add dynamic test results to XML output by @rdesgroppes in #94
- Generate test targets for only separate tests by @illicitonion in #95
- Reworking Java server lifecycle management by @illicitonion in #70
New Contributors
Full Changelog: v0.5.0...v0.6.0
v0.5.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "contrib_rules_jvm",
sha256 = "7705164fc0582cfac8400af7bb23ac9fa5f557004e6a4faf7fb4b50c7081653c",
strip_prefix = "rules_jvm-0.5.0",
url = "https://github.com/bazel-contrib/rules_jvm/archive/refs/tags/v0.5.0.zip",
)
# 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
- Bump io_grpc_grpc_java dep by @illicitonion in #45
Full Changelog: v0.4.0...v0.5.0
v0.4.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "contrib_rules_jvm",
sha256 = "a939cd04da2deee16131898d91d8e23559dcd1a30a5128beac30a2b01b33c94f",
strip_prefix = "rules_jvm-0.4.0",
url = "https://github.com/bazel-contrib/rules_jvm/archive/v0.4.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()To use the Gazelle plugin, please see its README
What's Changed
- Rules and macros
- Skip JUnit 5 tests when assumptions are not met by @bonigarcia in #37
- Update the dependency versions for the lint tools by @tjoneslo in #41
- Allow setting visibility for java_test_suite libraries by @illicitonion in #44
- Gazelle Java build file plugin
- Document configuration options by @illicitonion in #34
- Use getQualifiedName by @illicitonion in #35
- Only visit each ClassOrInterfaceType once by @illicitonion in #36
- Add javax.xml as provided by JDK by @stevebarrau in #38
- Fix a resolve issue with gRPC by @stevebarrau in #39
- Include problematic package on error by @illicitonion in #42
New Contributors
- @bonigarcia made their first contribution in #37
Full Changelog: v0.3.0...v0.4.0
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
aito 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_suiteto 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_suiteto generate test targets from aglobof sources.java_junit5_testto allow JUnit5 tests to be run. This is a drop-in replacement forjava_test, and is integrated intojava_test_suiteif 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