mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Update ktlint and gradle plugin.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user