Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / lint-rules / build.gradle.kts

build.gradle.kts34 lines · 1013 BRaw
1plugins {
2 // No version: build-logic's `kotlin-dsl` plugin already puts the Kotlin
3 // Gradle plugin on the root build's classpath, and re-requesting it with a
4 // version fails because the classpath copy has no version to check against.
5 id("org.jetbrains.kotlin.jvm")
6}
7
8// A plain JVM module: lint checks run inside Lint's own JVM, not on device, so
9// this must not be an Android library.
10dependencies {
11 compileOnly(libs.lint.api)
12 compileOnly(libs.lint.checks)
13
14 testImplementation(libs.lint.api)
15 testImplementation(libs.lint.checks)
16 testImplementation(libs.lint.tests)
17 testImplementation(libs.kotlin.test.junit)
18}
19
20kotlin {
21 compilerOptions {
22 // Lint loads checks reflectively; the registry below declares the API
23 // version it was built against.
24 freeCompilerArgs.add("-Xjvm-default=all")
25 }
26}
27
28tasks.jar {
29 manifest {
30 attributes(
31 "Lint-Registry-v2" to "com.vayunmathur.lint.ModernAppsIssueRegistry",
32 )
33 }
34}