I have a multi-module app which uses a plugin to handle common settings for modules. One of the things I configure are some lint options. So far this was my implementation:
class MyPlugin : Plugin<Project> {
override fun apply(project: Project) {
project.plugins.apply("kotlin-android")
val androidExtension = project.extensions.getByName("android")
if (androidExtension is BaseExtension) {
androidExtension.apply {
lintOptions {
isAbortOnError = false
//other settings
}
}
}
}
I am getting warnings about deprecation such as:
'isAbortOnError: Boolean' is deprecated. Overrides deprecated member in 'com.android.build.api.dsl.LintOptions'. Moved to lint.abortOnError
I would like to move to Lint as suggested, but BaseExtension does not have lint, only lintOptions. How to do it?