-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up plugin #125
Clean up plugin #125
Conversation
<!-- TODO fix existing violations --> | ||
<spotbugs.threshold>High</spotbugs.threshold> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make SpotBugs error behavior the same locally as in CI, focusing on high-priority violations.
<dependency> | ||
<groupId>org.jenkins-ci.plugins</groupId> | ||
<artifactId>structs</artifactId> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed as of recent cores.
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed as of recent plugin parent POMs.
if (!files.contains(file)) { | ||
files.add(file.toVirtualFile()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only high-severity SpotBugs warning identified.
@@ -48,7 +48,7 @@ | |||
import org.kohsuke.stapler.QueryParameter; | |||
import org.kohsuke.stapler.interceptor.RequirePOST; | |||
|
|||
import javax.annotation.CheckForNull; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSR 305 was EOL'ed a long time ago.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks 👍
Removes the following unneeded JARs from the JPI:
commons-io-2.11.0.jar
commons-lang3-3.9.jar
jsr305-3.0.1.jar
slf4j-api-1.7.36.jar
JSR305 is deprecated and the other three are already bundled in Jenkins core, superseding the version bundled in any plugin JPIs.