mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-20 02:58:45 +00:00
Convert lintchecks build.gradle to KTS.
This commit is contained in:
committed by
Greyson Parrelli
parent
26b9cea88e
commit
8bdcd588a0
@@ -1,17 +0,0 @@
|
|||||||
apply plugin: 'java-library'
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly lintLibs.lint.api
|
|
||||||
compileOnly lintLibs.lint.checks
|
|
||||||
|
|
||||||
testImplementation lintLibs.lint.tests
|
|
||||||
testImplementation testLibs.junit.junit
|
|
||||||
testImplementation lintLibs.lint.api
|
|
||||||
testImplementation lintLibs.lint.checks
|
|
||||||
}
|
|
||||||
|
|
||||||
jar {
|
|
||||||
manifest {
|
|
||||||
attributes('Lint-Registry-v2': 'org.signal.lint.Registry')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
35
lintchecks/build.gradle.kts
Normal file
35
lintchecks/build.gradle.kts
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
val signalJavaVersion: JavaVersion by rootProject.extra
|
||||||
|
val signalKotlinJvmTarget: String by rootProject.extra
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java-library")
|
||||||
|
id("org.jetbrains.kotlin.jvm")
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = signalJavaVersion
|
||||||
|
targetCompatibility = signalJavaVersion
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
jvmToolchain {
|
||||||
|
languageVersion = JavaLanguageVersion.of(signalKotlinJvmTarget)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly(lintLibs.lint.api)
|
||||||
|
compileOnly(lintLibs.lint.checks)
|
||||||
|
|
||||||
|
testImplementation(lintLibs.lint.tests)
|
||||||
|
testImplementation(lintLibs.lint.api)
|
||||||
|
testImplementation(testLibs.junit.junit)
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.jar {
|
||||||
|
manifest {
|
||||||
|
attributes(
|
||||||
|
"Lint-Registry-v2" to "org.signal.lint.Registry"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user