Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 353568a7 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

Update build.gradle to commebnt findbugs elements

parent 00ced4ed
Loading
Loading
Loading
Loading
+22 −22
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ buildscript {

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'findbugs'
//apply plugin: 'findbugs'

repositories {
    google()
@@ -25,8 +25,8 @@ dependencies {
    annotationProcessor 'org.parceler:parceler:1.1.12'
    implementation "com.android.support:support-annotations:28.0.0"

    findbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.8.0'
    findbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.4.3'
    //findbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.8.0'
    //findbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.4.3'
}

android {
@@ -67,24 +67,24 @@ android {
        targetSdkVersion 25
    }

    task findbugs(type: FindBugs) {
        ignoreFailures = false
        effort = "max"
        reportLevel = "medium"
        classes = fileTree("$project.buildDir/intermediates/javac/debug/compileDebugJavaWithJavac/classes/")
        excludeFilter = file("${project.rootDir}/scripts/analysis/findbugs-filter.xml")
        source = fileTree('src/main/java')
        pluginClasspath = project.configurations.findbugsPlugins
        classpath = files()
        include '**/*.java'
        exclude '**/gen/**'
    //task findbugs(type: FindBugs) {
    //    ignoreFailures = false
    //    effort = "max"
    //    reportLevel = "medium"
    //    classes = fileTree("$project.buildDir/intermediates/javac/debug/compileDebugJavaWithJavac/classes/")
    //    excludeFilter = file("${project.rootDir}/scripts/analysis/findbugs-filter.xml")
    //    source = fileTree('src/main/java')
    //    pluginClasspath = project.configurations.findbugsPlugins
    //    classpath = files()
    //    include '**/*.java'
    //    exclude '**/gen/**'

        reports {
            xml.enabled = false
            html.enabled = true
            html {
                destination = file("$project.buildDir/reports/findbugs/findbugs.html")
            }
        }
    }
    //    reports {
    //        xml.enabled = false
    //        html.enabled = true
    //        html {
    //            destination = file("$project.buildDir/reports/findbugs/findbugs.html")
    //        }
    //    }
    //}
}