From 808213dc3df60d17fc5c9805a75cb3d41eeb607b Mon Sep 17 00:00:00 2001 From: Syer10 Date: Tue, 27 Apr 2021 22:54:38 -0400 Subject: [PATCH] Ktlint now runs every build --- build.gradle.kts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4c6bb1ad..abca8a40 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -51,7 +51,7 @@ dependencies { implementation("org.apache.logging.log4j:log4j-api:$log4jVersion") implementation("org.apache.logging.log4j:log4j-core:$log4jVersion") implementation("org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion") - implementation("io.github.microutils:kotlin-logging:2.0.5") + implementation("io.github.microutils:kotlin-logging-jvm:2.0.5") // User storage implementation("net.harawata:appdirs:1.2.1") @@ -69,6 +69,7 @@ dependencies { tasks { withType { + dependsOn(formatKotlin) kotlinOptions { jvmTarget = "15" freeCompilerArgs = listOf( @@ -144,4 +145,8 @@ buildConfig { kotlinter { experimentalRules = true disabledRules = arrayOf("experimental:argument-list-wrapping") +} + +kapt { + includeCompileClasspath = false } \ No newline at end of file