Skip to content

Instantly share code, notes, and snippets.

@jeremyrempel
Last active July 11, 2020 22:32
Show Gist options
  • Save jeremyrempel/fc890ce9668d105542e97ab651dc89f1 to your computer and use it in GitHub Desktop.
Save jeremyrempel/fc890ce9668d105542e97ab651dc89f1 to your computer and use it in GitHub Desktop.
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'com.android.lint'
lintOptions {
htmlReport true
htmlOutput file("lint-report.html")
textReport true
absolutePaths false
ignoreTestSources true
}
dependencies {
implementation 'com.jakewharton:butterknife:10.2.1'
// For a description of the below dependencies, see the main project README
compileOnly "com.android.tools.lint:lint-api:$lintVersion"
compileOnly "com.android.tools.lint:lint-checks:$lintVersion"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
testImplementation "junit:junit:4.13"
testImplementation "com.android.tools.lint:lint:$lintVersion"
testImplementation "com.android.tools.lint:lint-tests:$lintVersion"
testImplementation "com.android.tools:testutils:$lintVersion"
}
jar {
manifest {
attributes("Lint-Registry-v2": "com.github.myproject.lint.lib.MyIssueRegistry")
}
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment