Skip to content
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

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Clean up plugin #125

merged 1 commit into from
Jul 18, 2023

Conversation

basil
Copy link
Member

@basil basil commented Jun 19, 2023

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.

Comment on lines +33 to +34
<!-- TODO fix existing violations -->
<spotbugs.threshold>High</spotbugs.threshold>
Copy link
Member Author

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.

Comment on lines -103 to -106
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
</dependency>
Copy link
Member Author

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.

Comment on lines -138 to -142
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
Copy link
Member Author

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.

Comment on lines -279 to -280
if (!files.contains(file)) {
files.add(file.toVirtualFile());
Copy link
Member Author

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;
Copy link
Member Author

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.

@basil basil marked this pull request as ready for review June 19, 2023 23:33
@basil basil requested a review from a team July 18, 2023 00:51
Copy link
Member

@jhansche jhansche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks 👍

@jhansche jhansche merged commit 2072b45 into jenkinsci:master Jul 18, 2023
@basil basil deleted the improvements branch July 18, 2023 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants