Closed fcurts closed 5 years ago
If I recall it right, the code accepts any annotation matching the annotation names from FB own package. So feel free to create your own version with your own license.
@iloveeclipse thanks! works great and is immensely useful. didn't find this information when searching docs/web.
code is the docs :-)
I have another workaround: you can depends on spotbugs-annotation
as compileOnly
(gradle) or as optional (maven). Then you do not distribute its jar file with your product. It won't trigger ClassNotFoundException in runtime.
@KengoTODA That's the standard solution I had used so far, but it's not clear to me what the licensing implications are, and I'd rather not spend my time arguing with lawyers over this.
Would be nice to see spotbugs-annotations relicensed under a more permissive license.
com.github.spotbugs:spotbugs-annotations:3.1.10
is LGPL licensed, which means I can't use it in my Apache 2 licensed software. Are there any alternatives, such as defining my own annotation recognized by SpotBugs? It would be a pity if I had to list every warning identified as false positive in a suppression file.