Skip to content

Releases: bazel-contrib/rules_jvm

v0.2.0

11 May 11:01
bdfec40
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v0.1.0...v0.2.0

v0.1.0

20 Jan 11:55
Compare
Choose a tag to compare

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

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

17 Dec 14:04
Compare
Choose a tag to compare

What's Changed

First release! Features include:

  • java_test_suite to generate test targets from a glob of sources.
  • java_junit5_test to allow JUnit5 tests to be run. This is a drop-in replacement for java_test, and is integrated into java_test_suite if the runner = "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, and java_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