|
|
@ -1,5 +1,7 @@ |
|
|
|
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper |
|
|
|
import org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper |
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
|
|
|
|
|
|
|
import org.jmailen.gradle.kotlinter.KotlinterExtension |
|
|
|
|
|
|
|
import org.jmailen.gradle.kotlinter.KotlinterPlugin |
|
|
|
import java.io.ByteArrayOutputStream |
|
|
|
import java.io.ByteArrayOutputStream |
|
|
|
import java.net.URL |
|
|
|
import java.net.URL |
|
|
|
|
|
|
|
|
|
|
@ -53,6 +55,13 @@ allprojects { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins.withType<KotlinterPlugin> { |
|
|
|
|
|
|
|
configure<KotlinterExtension> { |
|
|
|
|
|
|
|
// see https://github.com/pinterest/ktlint/issues/764 |
|
|
|
|
|
|
|
disabledRules = arrayOf("indent", "parameter-list-wrapping") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
tasks.withType<JavaCompile> { |
|
|
|
tasks.withType<JavaCompile> { |
|
|
|
options.release.set(11) |
|
|
|
options.release.set(11) |
|
|
|
} |
|
|
|
} |
|
|
|