mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Ktlint now runs every build
This commit is contained in:
@@ -51,7 +51,7 @@ dependencies {
|
|||||||
implementation("org.apache.logging.log4j:log4j-api:$log4jVersion")
|
implementation("org.apache.logging.log4j:log4j-api:$log4jVersion")
|
||||||
implementation("org.apache.logging.log4j:log4j-core:$log4jVersion")
|
implementation("org.apache.logging.log4j:log4j-core:$log4jVersion")
|
||||||
implementation("org.apache.logging.log4j:log4j-slf4j-impl:$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
|
// User storage
|
||||||
implementation("net.harawata:appdirs:1.2.1")
|
implementation("net.harawata:appdirs:1.2.1")
|
||||||
@@ -69,6 +69,7 @@ dependencies {
|
|||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
withType<KotlinCompile> {
|
withType<KotlinCompile> {
|
||||||
|
dependsOn(formatKotlin)
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = "15"
|
jvmTarget = "15"
|
||||||
freeCompilerArgs = listOf(
|
freeCompilerArgs = listOf(
|
||||||
@@ -144,4 +145,8 @@ buildConfig {
|
|||||||
kotlinter {
|
kotlinter {
|
||||||
experimentalRules = true
|
experimentalRules = true
|
||||||
disabledRules = arrayOf("experimental:argument-list-wrapping")
|
disabledRules = arrayOf("experimental:argument-list-wrapping")
|
||||||
|
}
|
||||||
|
|
||||||
|
kapt {
|
||||||
|
includeCompileClasspath = false
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user