Convert lintchecks build.gradle to KTS.
This commit is contained in:
parent
26b9cea88e
commit
8bdcd588a0
2 changed files with 35 additions and 17 deletions
|
@ -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"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue