Releases: buildfoundation/bazel_rules_detekt
Releases · buildfoundation/bazel_rules_detekt
v0.8.1.2
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_detekt", version = "0.8.1.2")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_detekt",
sha256 = "a5ae68f2487568d2c4145a8fc45da096edaaaed46487fb3d108ffe24b31d99da",
strip_prefix = "bazel_rules_detekt-0.8.1.2",
url = "https://github.com/buildfoundation/bazel_rules_detekt/releases/download/v0.8.1.2/bazel_rules_detekt-v0.8.1.2.tar.gz",
)
What's Changed
- Update MODULE.bazel version to 0.8.1.1 by @Bencodes in #167
- Update metadata.template.json to use Artem's working email by @Bencodes in #166
- Bump bazel-contrib/.github from 4 to 5 by @dependabot in #168
- Fix typo in toolchains.bzl by @Bencodes in #169
Full Changelog: v0.8.1.1...v0.8.1.2
v0.8.1.1
Notable changes in this release:
- Bzlmod support is here! A few breaking changes had to be made to better support Bzlmod. For more information please refer to #151 (comment)
- There is a new
detekt_test
rule that was added so that these rules can be invoked usingbazel test //...
#149 - The included detekt version was updated to 1.23.1. #157
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_detekt", version = "0.8.1.1")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_detekt",
sha256 = "946891973dc13bf68b8c0d3e8c7c1967dd1f8642481276934cbe77e9c362c84c",
strip_prefix = "bazel_rules_detekt-0.8.1.1",
url = "https://github.com/buildfoundation/bazel_rules_detekt/releases/download/v0.8.1.1/bazel_rules_detekt-v0.8.1.1.tar.gz",
)
What's Changed
- Update Bzlmod presubmit to use //... by @Bencodes in #163
- Update rules_java to 5.5.0 by @Bencodes in #164
- Run only the /detekt/... tests during BCR presubmit by @Bencodes in #165
Full Changelog: v0.8.1...v0.8.1.1
v0.8.1
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_detekt",
sha256 = "593f88e7ecae3eddfad85ae6c04f855e257a43c7ecdf2e1b0e88c045f40e4d33",
strip_prefix = "bazel_rules_detekt-0.8.1",
url = "https://github.com/buildfoundation/bazel_rules_detekt/releases/download/v0.8.1/bazel_rules_detekt-v0.8.1.tar.gz",
)
What's Changed
- Enable Dependabot by @Bencodes in #136
- Bump actions/setup-java from 2 to 3 by @dependabot in #140
- Bump actions/cache from 2.1.3 to 3.2.4 by @dependabot in #139
- Bump actions/checkout from 2.3.1 to 3.3.0 by @dependabot in #138
- Bump bazelbuild/setup-bazelisk from 1 to 2 by @dependabot in #137
- Bump actions/cache from 3.2.4 to 3.2.5 by @dependabot in #141
- Bump actions/cache from 3.2.5 to 3.2.6 by @dependabot in #142
- Bump actions/cache from 3.2.6 to 3.3.1 by @dependabot in #143
- Bump actions/checkout from 3.3.0 to 3.4.0 by @dependabot in #144
- Bump actions/checkout from 3.4.0 to 3.5.0 by @dependabot in #145
- Update rules_java, rules_jvm_external, bazel_skylib, bazel by @Bencodes in #147
- Move rule attributes to global variable by @davidkurkov in #148
- Add detekt-test target by @davidkurkov in #149
- Bump actions/checkout from 3 to 4 by @dependabot in #150
- Add support for Bzlmod by @Bencodes in #151
- Add BCR configurations by @Bencodes in #152
- Pin Bzlmod rules_detekt_dependencies by @Bencodes in #153
- Update the README with Bzlmod customization information by @Bencodes in #154
- Add back missing WORKSPACE test dependency by @Bencodes in #156
- Fix detekt_version macro documentation by @Bencodes in #155
- Update Detekt 1.22.0 -> 1.23.1 by @Bencodes in #157
- Use detekt_test in the README since the detekt rule was renamed by @Bencodes in #158
- Integrate BCR release CI scripts by @Bencodes in #159
- Add missing ci.bazelrc by @Bencodes in #160
- Don't build manual targets on CI by @Bencodes in #162
New Contributors
- @dependabot made their first contribution in #140
- @davidkurkov made their first contribution in #148
Full Changelog: v0.7.0...v0.8.1
v0.7.0
rules_detekt_version="0.7.0"
rules_detekt_sha="16a85a2b92e3f708a64c7f73fa6bb2d87018bd968ee4bb2b576cb43e48ab293b"
What's Changed
- Update Detekt 1.21.0 → 1.22.0 by @artem-zinnatullin in #135
- Switch persistent worker from Protocol Buffers to JSON by @arturdryomov & @artem-zinnatullin #133 (removes dependency on
rules_proto
! Please check README if you're on Bazel prior to 5.1.0) - Update rules_jvm_external from 4.2 -> 4.4.2 by @Bencodes in #131
Full Changelog: v0.6.1...v0.7.0
v0.6.1
rules_detekt_version="0.6.1"
rules_detekt_sha="6d532a25caa0d63d142848e7b0d4eb3b2ac89253646b68c1c94b7ec7371bdc1c"
What's Changed
- Update rules_proto to 4.0.0-3.20.0 by @Bencodes in #123
- Update Bazel from 5.0.0 -> 5.3.1 by @Bencodes in #127
- Switch to Zulu JDK, setup-bazelisk, and buildifier_prebuilt by @Bencodes in #128
- Update Detekt from 1.19.0 to 1.21.0 by @Bencodes in #130
Full Changelog: v0.6.0...v0.6.1
v0.6.0
rules_detekt_version="0.6.0"
rules_detekt_sha="44912c74dc2e164227b1102ef36227d0e78fdbd7c7359868ae13424eb4f0d5c2"
Changes
- Bazel 5.0.0 support
- Updating our
rules_jvm_external
andrules_java
repositories - Using the worker implementation targets provided by Bazel
Full Changelog: v0.5.0...v0.6.0
v0.5.0
rules_detekt_version="0.5.0"
rules_detekt_sha="65203efa2c7f252a9fbeba0abe651cd32c316858d3dbad550a5a34cf48bbe404"
Changes
- Detekt wrapper powering the rule was rewritten from Kotlin to Java. While this is painful, it removes the
rules_kotlin
dependency and associated issues with upgrading to new Kotlin versions (which lead to clashing with Detekt bytecode). - Enable worker multiplex execution. This should improve execution times by a margin — see #109 for the comparison.
v0.4.0
rules_detekt_version="0.4.0"
rules_detekt_sha="a39020fba766258cdcdbf8f99487304775bd6e43b8b3b967b9961d48b2581fe3"
Changes
- Support for latest Bazel (4.0.0) and Detekt (1.15.0) versions. Thanks @Bencodes!
- Support for Detekt plugins.
v0.3.0
rules_detekt_version="0.3.0"
rules_detekt_sha="b1b4c8a3228f880a169ab60a817619bc4cf254443196e7e108ece411cb9c580e"
Both workspace and package declarations were changed — please take a look at the README.md
for new ones.
- The default Detekt version is 1.7.4. It’s also possible to use a custom one.
- More Detekt options, see the documentation.
- Bazel persistent workers support.
v0.2.0
rules_detekt_version = "0.2.0"
rules_detekt_sha = "089c4cb35d4f711aa5a6bb8c109950cfcc07327ac6956275971ec401992fccd6"
Changelog:
- Add pull_request trigger to GitHub Actions CI (#17)
- Refine the readme file (#16)
- Switch to Bazelisk (#19)
- Refactor rule declaration (#18)
- Add Maven Central URL for downloading Detekt (#21)
- Fix invocations with multiple input files (#22)
❤️ Thanks to these contributors: