We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab1e45a commit 696bb8bCopy full SHA for 696bb8b
buildSrc/private/src/main/kotlin/androidx/build/Ktlint.kt
@@ -233,6 +233,7 @@ abstract class KtlintFormatTask : BaseKtlintTask() {
233
javaExecSpec.mainClass.set(MainClass)
234
javaExecSpec.classpath = ktlintClasspath
235
javaExecSpec.args = getArgsList(shouldFormat = true)
236
+ javaExecSpec.jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
237
overrideDirectory?.let { javaExecSpec.workingDir = it }
238
}
239
0 commit comments