feat(build): add androidx.lint checks to build-logic

This commit is contained in:
Harsh Shandilya 2024-03-05 19:11:16 +05:30
parent 9298fa9ea0
commit 9a6d7d267a
6 changed files with 57 additions and 17 deletions

View file

@ -4,7 +4,10 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
plugins { `kotlin-dsl` }
plugins {
`kotlin-dsl`
alias(libs.plugins.android.lint)
}
kotlin.jvmToolchain(17)
@ -61,6 +64,8 @@ gradlePlugin {
}
}
lint.baseline = project.file("lint-baseline.xml")
dependencies {
implementation(libs.build.agp)
implementation(libs.build.cachefix)
@ -72,4 +77,6 @@ dependencies {
// Expose the generated version catalog API to the plugin.
implementation(files(libs::class.java.superclass.protectionDomain.codeSource.location))
lintChecks(libs.androidx.lint)
}