Merge pull request #10046 from Stypox/ktlint-java17
Fix ktlint formatter after upgrade to Java 17
This commit is contained in:
commit
e1fd25fb71
1 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,7 @@ task runKtlint(type: JavaExec) {
|
||||||
getMainClass().set("com.pinterest.ktlint.Main")
|
getMainClass().set("com.pinterest.ktlint.Main")
|
||||||
classpath = configurations.ktlint
|
classpath = configurations.ktlint
|
||||||
args "src/**/*.kt"
|
args "src/**/*.kt"
|
||||||
|
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED")
|
||||||
}
|
}
|
||||||
|
|
||||||
task formatKtlint(type: JavaExec) {
|
task formatKtlint(type: JavaExec) {
|
||||||
|
@ -172,6 +173,7 @@ task formatKtlint(type: JavaExec) {
|
||||||
getMainClass().set("com.pinterest.ktlint.Main")
|
getMainClass().set("com.pinterest.ktlint.Main")
|
||||||
classpath = configurations.ktlint
|
classpath = configurations.ktlint
|
||||||
args "-F", "src/**/*.kt"
|
args "-F", "src/**/*.kt"
|
||||||
|
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED")
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
|
|
Loading…
Add table
Reference in a new issue