2

运行现场错误时出现错误“执行 com.github.spotbugs.snom.internal.SpotBugsRunnerForWorker$SpotBugsExecutor 时发生故障”

Gradle 版本:- 6.6.1 SpotBug 插件- 4.2

plugins {
    id 'java'
    id 'io.quarkus'
    id "com.github.spotbugs" version "4.2.0"

}

repositories {
    mavenCentral()
}

sourceSets {
    main {
        java {
            srcDir 'src/main/java'
        }
        resources {
            srcDir 'src/main/resources'
        }
    }
}

dependencies {
    compile "org.apache.commons:commons-lang3:3.11"
    compile "org.jboss.logmanager:log4j2-jboss-logmanager"
    compile 'org.jboss.slf4j:slf4j-jboss-logging'
    compile 'org.jboss.logging:commons-logging-jboss-logging'


    spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.10.1'

}

compileJava {
    options.encoding = 'UTF-8'
    options.compilerArgs << '-parameters'
}

java {
    sourceCompatibility = JavaVersion.VERSION_11
    targetCompatibility = JavaVersion.VERSION_11
}


spotbugs {
    toolVersion = '4.2.0'
}
4

0 回答 0