1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-21 18:42:35 +01:00

Merge pull request #10046 from Stypox/ktlint-java17

Fix ktlint formatter after upgrade to Java 17
This commit is contained in:
Stypox 2023-05-02 13:43:44 +02:00 committed by GitHub
commit e1fd25fb71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,6 +164,7 @@ task runKtlint(type: JavaExec) {
getMainClass().set("com.pinterest.ktlint.Main")
classpath = configurations.ktlint
args "src/**/*.kt"
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED")
}
task formatKtlint(type: JavaExec) {
@ -172,6 +173,7 @@ task formatKtlint(type: JavaExec) {
getMainClass().set("com.pinterest.ktlint.Main")
classpath = configurations.ktlint
args "-F", "src/**/*.kt"
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED")
}
afterEvaluate {