https://kotlinlang.org logo
#gradle
Title
# gradle
o

opas90

01/19/2017, 5:56 PM
@bamboo How can i configure the below plugin, i am using latest Kotlin 1.1 Beta
Copy code
findbugs {
    	sourceSets = [sourceSets.main]
    	ignoreFailures = false
    	reportsDir = file( "$project.buildDir/findbugsReports" )
    	effort = "max"
    	reportLevel = "high"
	}
    
    tasks.withType(FindBugs) {
        reports {
            xml.enabled false
            html.enabled true
        }
    }
The commented code is something not working
Copy code
configure<FindBugsExtension> {
//        sourceSets = [sourceSets.main]
        isIgnoreFailures = true
        reportsDir = file("$project.buildDir/findbugsReports")
        effort = "max"
        reportLevel = "high"
    }

    tasks.withType(FindBugs::class.java) {
//        reports {
//            xml.enabled false
//            html.enabled true
//        }
    }