From 6b229e8a494be62511b1bfe0eca1b1b35a90f90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Fri, 20 Jan 2023 20:12:41 +0100 Subject: [PATCH] Fix Gradle 8.0 compatibility --- src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/FormatTask.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/FormatTask.kt b/src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/FormatTask.kt index 6b102b04..8182662d 100644 --- a/src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/FormatTask.kt +++ b/src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/FormatTask.kt @@ -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 } }