diff --git a/.editorconfig b/.editorconfig index 16fc6000..4c68c0bc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,8 +5,6 @@ charset = utf-8 insert_final_newline = true trim_trailing_whitespace = true -end_of_line = lf - [*.{kt,kts}] ij_kotlin_packages_to_use_import_on_demand = java.util.**, in.dragonbra.javasteam.protobufs.steamclient.**, kotlinx.coroutines.** indent_size = 4 diff --git a/build.gradle.kts b/build.gradle.kts index 5358f1fe..c04b5bc6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,6 +23,29 @@ repositories { mavenCentral() } +// TODO remove (all this) once kotlinter supports ktlint 1.3.2+ once that's released. +buildscript { + configurations.classpath { + resolutionStrategy { + repositories { + maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } + } + force( + "com.pinterest.ktlint:ktlint-cli-reporter-checkstyle:1.4.0-SNAPSHOT", + "com.pinterest.ktlint:ktlint-cli-reporter-core:1.4.0-SNAPSHOT", + "com.pinterest.ktlint:ktlint-cli-reporter-html:1.4.0-SNAPSHOT", + "com.pinterest.ktlint:ktlint-cli-reporter-json:1.4.0-SNAPSHOT", + "com.pinterest.ktlint:ktlint-cli-reporter-plain:1.4.0-SNAPSHOT", + "com.pinterest.ktlint:ktlint-cli-reporter-sarif:1.4.0-SNAPSHOT", + "com.pinterest.ktlint:ktlint-rule-engine-core:1.4.0-SNAPSHOT", + "com.pinterest.ktlint:ktlint-rule-engine:1.4.0-SNAPSHOT", + "com.pinterest.ktlint:ktlint-ruleset-standard:1.4.0-SNAPSHOT" + ) + } + } +} +// end to-do + java { sourceCompatibility = JavaVersion.toVersion(libs.versions.java.get()) targetCompatibility = JavaVersion.toVersion(libs.versions.java.get())