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 24, 2023
1 parent e8bce9d commit ff27fdf
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 ff27fdf

Please sign in to comment.