jenkinsci / label-linked-jobs-plugin

LabelPluginSettings
https://plugins.jenkins.io/label-linked-jobs/
2 stars 13 forks source link

Fix spotbugs-annotations RequireUpperBoundDeps enforcer rule #15

Open yuezhuangshi opened 3 years ago

yuezhuangshi commented 3 years ago

run mvn clean package on branch master, I got the following errors:

[WARNING] Rule 4: org.apache.maven.plugins.enforcer.RequireUpperBoundDeps failed with message:
Failed while enforcing RequireUpperBoundDeps. The error(s) are [
Require upper bound dependencies error for com.github.spotbugs:spotbugs-annotations:3.1.12 paths to dependency are:
+-org.jenkins-ci.plugins:label-linked-jobs:6.0.2-SNAPSHOT
  +-com.github.spotbugs:spotbugs-annotations:3.1.12 (managed) <-- com.github.spotbugs:spotbugs-annotations:4.2.3
]

Therefore, I override spotbugs-annotations version and keep scope & option to fix the issue.