Skip to content

Commit

Permalink
Fix Gradle 8.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Jan 20, 2023
1 parent 1036d33 commit 6b229e8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ open class FormatTask @Inject constructor(
spec.classpath.setFrom(ktlintClasspath, ruleSetsClasspath)
spec.forkOptions { options ->
options.maxHeapSize = workerMaxHeapSize.get()
options.jvmArgs = listOf("--add-opens=java.base/java.lang=ALL-UNNAMED") // https://github.com/gradle/gradle/issues/21013
}
}

Expand Down

0 comments on commit 6b229e8

Please sign in to comment.