spotbugs导出html,Why SpotBugs Gradle plugin always generate XML report instead of HTML?

I am using Gradle 5.2, spotbugs-gradle-plugin version 2.0.0 and tried to generate SpotBugs report on my project. I used the following configuration on my project but it always create XML reports instead of html report.

buildscript {

repositories {

jcenter()

maven {

url "https://plugins.gradle.org/m2/"

}

}

dependencies {

classpath 'com.github.jengelman.gradle.plugins:shadow:+'

classpath "gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:2.0.0"

}

}

allprojects {

apply plugin: 'com.github.johnrengelman.shadow'

apply plugin: 'java'

apply plugin: 'eclipse'

apply plugin: 'com.github.spotbugs'

group = 'com.myproject'

version = '1.0.0'

repositories {

mavenCentral()

}

dependencies {

compile('com.google.cloud:google-cloud-storage:+') {

exclude group: "com.google.guava", module: "guava"

}

compile group: 'org.apache.commons', name: 'commons-collections4', version: '+'

compile group: 'com.google.guava', name: 'guava', version: '+'

testImplementation('org.junit.jupiter:junit-jupiter:+')

}

test {

useJUnitPlatform()

testLogging {

events "passed", "skipped", "failed"

}

}

}

project(':myproject') {

dependencies {

compile group: 'com.github.javafaker', name: 'javafaker', version: '+'

compile group: 'org.jsonschema2pojo', name: 'jsonschema2pojo-core', version: '+'

compile group: 'commons-lang', name: 'commons-lang', version: '+'

compile group: 'org.mongodb', name: 'bson', version: '+'

}

}

tasks.withType(JavaCompile) {

options.compilerArgs << '-Xlint:unchecked'

options.deprecation = true

}

spotbugsMain {

reports {

xml.enabled = false

html.enabled = true

}

}

What I did wrong here?

Kindly provide your inputs to create HTML report instead of XML!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值