2023-08-16 15:29:45 -03:00
|
|
|
import org.gradle.kotlin.dsl.extra
|
|
|
|
|
2023-02-27 19:44:51 -05:00
|
|
|
plugins {
|
2023-06-23 13:09:24 -04:00
|
|
|
`kotlin-dsl`
|
|
|
|
id("groovy-gradle-plugin")
|
2024-05-15 21:41:30 -04:00
|
|
|
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
|
2023-02-27 19:44:51 -05:00
|
|
|
}
|
|
|
|
|
2023-08-16 15:29:45 -03:00
|
|
|
val signalJavaVersion: JavaVersion by rootProject.extra
|
|
|
|
val signalKotlinJvmTarget: String by rootProject.extra
|
|
|
|
|
2023-02-27 19:44:51 -05:00
|
|
|
java {
|
2023-08-16 15:29:45 -03:00
|
|
|
sourceCompatibility = signalJavaVersion
|
|
|
|
targetCompatibility = signalJavaVersion
|
2023-02-27 19:44:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlinDslPluginOptions {
|
2023-08-16 15:29:45 -03:00
|
|
|
jvmTarget.set(signalKotlinJvmTarget)
|
2023-02-27 19:44:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-06-23 13:09:24 -04:00
|
|
|
implementation(libs.kotlin.gradle.plugin)
|
|
|
|
implementation(libs.android.library)
|
|
|
|
implementation(libs.android.application)
|
|
|
|
implementation(project(":tools"))
|
|
|
|
implementation(libs.ktlint)
|
2023-02-27 19:44:51 -05:00
|
|
|
|
2023-06-23 13:09:24 -04:00
|
|
|
// 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))
|
2023-02-27 19:44:51 -05:00
|
|
|
}
|
2023-03-03 13:26:42 -04:00
|
|
|
|
|
|
|
ktlint {
|
2023-06-23 13:09:24 -04:00
|
|
|
filter {
|
|
|
|
exclude { element ->
|
|
|
|
element.file.path.contains("/build/generated-sources")
|
2023-03-03 13:26:42 -04:00
|
|
|
}
|
2023-06-23 13:09:24 -04:00
|
|
|
}
|
2023-03-03 13:26:42 -04:00
|
|
|
}
|