Skip to content

Commit

Permalink
Revert "Remove the workaround for Gradle issue 22765 (#1225)"
Browse files Browse the repository at this point in the history
This reverts commit a34d3c3.
  • Loading branch information
Goooler committed Feb 6, 2025
1 parent 51c0ae5 commit 5dfecf9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ testing.suites {
testTask {
// Required to enable `IssueExtension` for all tests.
systemProperty("junit.jupiter.extensions.autodetection.enabled", true)

// Required to test configuration cache in tests when using withDebug()
// https://github.com/gradle/gradle/issues/22765#issuecomment-1339427241
jvmArgs(
"--add-opens",
"java.base/java.util=ALL-UNNAMED",
"--add-opens",
"java.base/java.util.concurrent.atomic=ALL-UNNAMED",
"--add-opens",
"java.base/java.lang.invoke=ALL-UNNAMED",
"--add-opens",
"java.base/java.net=ALL-UNNAMED",
)
}
}
dependencies {
Expand Down

0 comments on commit 5dfecf9

Please sign in to comment.