summaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2020-01-05 12:32:14 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2020-01-05 18:19:32 +0100
commit68b9559af812b0890705b02ef36ba18cc825aab6 (patch)
tree24db38a59ea6fa5d6c39634c25cdfe3c1b3fb746 /build.gradle.kts
parentUpgrade to Krossbow 0.4.1 (diff)
downloadseven-wonders-68b9559af812b0890705b02ef36ba18cc825aab6.tar.gz
seven-wonders-68b9559af812b0890705b02ef36ba18cc825aab6.tar.bz2
seven-wonders-68b9559af812b0890705b02ef36ba18cc825aab6.zip
Ugrade Kotlin and Ktlint
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts15
1 files changed, 13 insertions, 2 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 80d84681..2bc38baa 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,10 +1,10 @@
plugins {
- val kotlinVersion = "1.3.50"
+ val kotlinVersion = "1.3.61"
kotlin("js") version kotlinVersion apply false
kotlin("jvm") version kotlinVersion apply false
kotlin("multiplatform") version kotlinVersion apply false
kotlin("plugin.spring") version kotlinVersion apply false
- id("org.jlleitschuh.gradle.ktlint") version "7.1.0" apply false
+ id("org.jlleitschuh.gradle.ktlint") version "9.1.1" apply false
}
subprojects {
@@ -19,4 +19,15 @@ subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile> {
kotlinOptions.freeCompilerArgs = listOf("-Xuse-experimental=kotlin.Experimental")
}
+
+ afterEvaluate {
+ if (!project.name.startsWith("sw-ui")) {
+ // The import ordering expected by ktlint is alphabetical, which doesn't match IDEA's formatter.
+ // Since it is not configurable, we have to disable the rule.
+ // https://github.com/pinterest/ktlint/issues/527
+ extensions.configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
+ disabledRules.set(setOf("import-ordering"))
+ }
+ }
+ }
}
bgstack15