Update ktlint and gradle plugin.

This commit is contained in:
Cody Henthorne
2023-06-23 13:09:24 -04:00
committed by Nicholas
parent 65255121de
commit c17d62aeab
69 changed files with 447 additions and 176 deletions

View File

@@ -1,34 +1,34 @@
plugins {
`kotlin-dsl`
id("groovy-gradle-plugin")
id("org.jlleitschuh.gradle.ktlint") version "11.1.0"
`kotlin-dsl`
id("groovy-gradle-plugin")
id("org.jlleitschuh.gradle.ktlint") version "11.4.2"
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinDslPluginOptions {
jvmTarget.set("11")
jvmTarget.set("11")
}
dependencies {
implementation(libs.kotlin.gradle.plugin)
implementation(libs.android.library)
implementation(libs.android.application)
implementation(project(":tools"))
implementation(libs.ktlint)
implementation(libs.kotlin.gradle.plugin)
implementation(libs.android.library)
implementation(libs.android.application)
implementation(project(":tools"))
implementation(libs.ktlint)
// These allow us to reference the dependency catalog inside of our compiled plugins
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
implementation(files(testLibs.javaClass.superclass.protectionDomain.codeSource.location))
// These allow us to reference the dependency catalog inside of our compiled plugins
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
implementation(files(testLibs.javaClass.superclass.protectionDomain.codeSource.location))
}
ktlint {
filter {
exclude { element ->
element.file.path.contains("/build/generated-sources")
}
filter {
exclude { element ->
element.file.path.contains("/build/generated-sources")
}
}
}