Skip to content

Commit

Permalink
[FIX] Detekt Add --add-opens java.base/java.lang=ALL-UNNAMED
Browse files Browse the repository at this point in the history
- With the upgrade from openjdk@11 to openjdk@17 the formula breaks when running detekt
- See #116784
  • Loading branch information
Robert Wiesner committed Nov 27, 2022
1 parent b4cfce5 commit 7de4d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/detekt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ 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"
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 7de4d74

Please sign in to comment.