Get annotation versions from core BOM
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
- <version>4.5.1</version>
<scope>provided</scope>
<optional>true</optional>
<exclusions>
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>access-modifier-annotation</artifactId>
- <version>${access-modifier-checker.version}</version>
<scope>provided</scope>
+ <optional>true</optional>
<exclusions>
<exclusion>
<!-- provided by Jenkins core -->
<exclude>com.google.code.findbugs:annotations</exclude>
<exclude>com.google.code.findbugs:jsr305</exclude> <!-- ditto -->
<exclude>net.java.dev.jna:jna</exclude> <!-- needed for Jenkins 1.585 and earlier -->
+ <exclude>org.kohsuke:access-modifier-annotation</exclude>
</excludes>
</requireUpperBoundDeps>
</rules>
