nebula-plugins/gradle-lint-plugin

False positive when using spotbugs annotations

Open

#239 opened on Apr 25, 2019

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Groovy (89 forks)batch import
Hacktoberfest

Repository metrics

Stars
 (795 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

The spotbugs migration guide suggests to replace com.google.code.findbugs:annotations with net.jcip:jcip-annotations:1.0 and com.github.spotbugs:spotbugs-annotations:4.0.0-beta1.

When doing so on a project, that uses spotbugs, the lint plugin fails with

undeclared-dependency              one or more classes in com.google.code.findbugs:annotations:2.0.1 are required by your code directly
unused-dependency                  one or more classes in com.google.code.findbugs:annotations:2.0.1 are required by your code directly

Contributor guide