find-sec-bugs
find-sec-bugs copied to clipboard
SpotBugs 4.5.3 does not include a `compile` target as assumed by FSB
Using recent gradle, maven, and JDK8 (or 17, either way). I am trying to build the find sec bugs cli (to gain the JDK17 support as a stop gap till FSB x.12 is released). This fails with:
$ gradle packageCli
FAILURE: Build failed with an exception.
* Where:
Build file '/tmp/find-sec-bugs/cli/build.gradle' line: 8
* What went wrong:
A problem occurred evaluating root project 'cli'.
> Could not find method compile() for arguments [com.github.spotbugs:spotbugs:4.5.3] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
Environment
$ javac -version
javac 1.8.0_312
$ mvn --version
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: /opt/maven
Java version: 1.8.0_312, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.10.76-linuxkit", arch: "amd64", family: "unix"
$ gradle --version
------------------------------------------------------------
Gradle 7.2
------------------------------------------------------------
Build time: 2021-08-17 09:59:03 UTC
Revision: a773786b58bb28710e3dc96c4d1a7063628952ad
Kotlin: 1.5.21
Groovy: 3.0.8
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_312 (Private Build 25.312-b07)
OS: Linux 5.10.76-linuxkit amd64
$ git rev-parse HEAD
a7694d0a61e58479924d3f4267fe206a9e892c11