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

Remove unused commons-validator dependency #131

Merged
merged 1 commit into from
May 4, 2024

Conversation

MarkEWaite
Copy link
Contributor

Remove unused commons-validator dependency

The commons-validator dependency was added in the 1.9.1 release as part of 468a595, though there seems to have been no references to validator classes in any history of the repository. It was not includeed in the 1.9 release or any prior releases.

The commons-validator dependency was added to the master branch after the 1.9.1 release as part of 5ca8ab7. There are no references to validator classes in the current source code.

Removing commons-validator reduces the plugin from over 1MB to less than 60KB. Comparisons are listed below:

-rw-rw-r--. 1 mwaite mwaite   54015 Oct 25  2021 ../badge-1.9.hpi
-rw-rw-r--. 1 mwaite mwaite 1135545 Jan 12  2022 ../badge-1.9.1.hpi
-rw-rw-r--. 1 mwaite mwaite   56150 May  4 07:35 target/badge.hpi

Testing done

Automated tests pass. Will combine with a minimum Jenkins version update and with the Jenkins design library pull request and test interactively to confirm no surprises. The Jenkins design library pull request is:

Submitter checklist

The commons-validator dependency was added in the 1.9.1 release as part
of 468a595, though there seems to have
been no references to validator classes in any history of the repository.
It was not includeed in the 1.9 release or any prior releases.

The commons-validator dependency was added to the master branch after the
1.9.1 release as part of 5ca8ab7. There
are no references to validator classes in the current source code.

Removing commons-validator reduces the plugin from over 1MB to less
than 60KB.  Comparisons are listed below:

-rw-rw-r--. 1 mwaite mwaite   54015 Oct 25  2021 ../badge-1.9.hpi
-rw-rw-r--. 1 mwaite mwaite 1135545 Jan 12  2022 ../badge-1.9.1.hpi
-rw-rw-r--. 1 mwaite mwaite   56150 May  4 07:35 target/badge.hpi
@MarkEWaite MarkEWaite requested a review from a team as a code owner May 4, 2024 13:40
@MarkEWaite MarkEWaite added the chore Reduce maintenance label May 4, 2024
MarkEWaite added a commit to MarkEWaite/docker-lfs that referenced this pull request May 4, 2024
Copy link
Contributor

@bakito bakito left a comment

Choose a reason for hiding this comment

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

Lgtm

@MarkEWaite MarkEWaite merged commit aedaf28 into jenkinsci:master May 4, 2024
14 checks passed
@MarkEWaite MarkEWaite deleted the remove-commons-validator branch May 4, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Reduce maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants