mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
40 lines
1020 B
Kotlin
40 lines
1020 B
Kotlin
plugins {
|
|
`kotlin-dsl`
|
|
alias(libs.plugins.ktlint)
|
|
id("groovy-gradle-plugin")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.toVersion(libs.versions.javaVersion.get())
|
|
targetCompatibility = JavaVersion.toVersion(libs.versions.javaVersion.get())
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(libs.versions.kotlinJvmTarget.get()))
|
|
}
|
|
compilerOptions {
|
|
suppressWarnings = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.kotlin.gradle.plugin)
|
|
implementation(libs.android.library)
|
|
implementation(libs.android.application)
|
|
implementation(libs.ktlint)
|
|
implementation(project(":tools"))
|
|
|
|
// 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")
|
|
}
|
|
}
|
|
}
|