-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlint.gradle
More file actions
34 lines (30 loc) · 818 Bytes
/
Copy pathlint.gradle
File metadata and controls
34 lines (30 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
apply plugin: "com.github.spotbugs"
def lintReportDir = new File(project.buildDir, 'reports/lint')
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.github.spotbugs:gradlePlugin:1.4"
}
}
spotbugs {
toolVersion = '3.1.0-RC6'
reportsDir = lintReportDir
effort = "max"
reportLevel = "high"
}
task spotbugs(type: com.github.spotbugs.SpotBugsTask) {
pluginClasspath = project.configurations.spotbugsPlugins
classpath = files()
classes = fileTree("$project.buildDir/intermediates/classes/debug/")
source = fileTree('src/main/java')
ignoreFailures = true
reports {
xml.enabled true
xml.withMessages true
}
excludeFilter = file("$rootProject.projectDir/config/findbugs-android-exclude.xml")
}