https://kotlinlang.org logo
Title
u

ursus

10/09/2019, 4:21 AM
I think it went like project.something("android").lintOptions = ..
v

voben

10/09/2019, 5:29 PM
One option is to create a custom gradle plugin and apply it to all projects where you need these lintOptions.
There's a good talk on how to do that here

https://www.youtube.com/watch?v=sQC9-Rj2yLI

u

ursus

10/09/2019, 5:59 PM
feels a bit like a overkill but thank you
v

voben

10/09/2019, 6:04 PM
Fair enough, you could always try something like this instead. In your top level build.gradle file. Note this is using groovy not kotlin
subprojects {
   
     plugins.withId('android') {
       android {
          lintOptions {
                // Configure your lint options here
          }
       }
     }
}