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

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

build.gradle.kts29 lines · 846 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
15kotlin {
16 compilerOptions {
17 // Lint loads checks reflectively; the registry below declares the API
18 // version it was built against.
19 freeCompilerArgs.add("-Xjvm-default=all")
20 }
21}
22
23tasks.jar {
24 manifest {
25 attributes(
26 "Lint-Registry-v2" to "com.vayunmathur.lint.ModernAppsIssueRegistry",
27 )
28 }
29}