Skip to content

Commit

Permalink
detekt: rebuild
Browse files Browse the repository at this point in the history
* [FIX] Detekt Add --add-opens java.base/java.lang=ALL-UNNAMED
  - With the upgrade from openjdk@11 to openjdk@17 the formula breaks when running detekt
  - See #116784
* Review: Add link to detekt issue to remove workaround
* Review: reminder to remove workaround after root cause is fixed

Closes #116785.

Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com>
Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
2 people authored and BrewTestBot committed Nov 28, 2022
1 parent a081d94 commit 5807e70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/detekt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class Detekt < Formula

def install
libexec.install "detekt-cli-#{version}-all.jar"
bin.write_jar_script libexec/"detekt-cli-#{version}-all.jar", "detekt", java_version: "17"
# remove `--add-opens` after https://github.com/detekt/detekt/issues/5576
bin.write_jar_script libexec/"detekt-cli-#{version}-all.jar", "detekt", "--add-opens java.base/java.lang=ALL-UNNAMED", java_version: "17"
end

test do
Expand Down

0 comments on commit 5807e70

Please sign in to comment.