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 duplicate code #781

Merged
merged 3 commits into from
Sep 4, 2023
Merged

Remove duplicate code #781

merged 3 commits into from
Sep 4, 2023

Conversation

basil
Copy link
Member

@basil basil commented Aug 30, 2023

As of the latest plugin parent POM, the properties are already defined in the plugin parent POM and the BOMs are already imported, so these code is duplicate and can be safely deleted.

@basil basil requested a review from uhafner August 30, 2023 20:24
@basil basil force-pushed the duplicate branch 2 times, most recently from ff6a772 to a2a4c96 Compare August 30, 2023 20:37
@basil
Copy link
Member Author

basil commented Aug 31, 2023

pom.xml Outdated
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this version already defined in the parent pom, then we do not need it here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am just being consistent with your other code in this POM file that already contains redundant versions. If you think the redundancy should be eliminated, remove it from your existing code in a separate PR and then I will follow suit in this PR.

pom.xml Outdated
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Member Author

Choose a reason for hiding this comment

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

I am just being consistent with your other code in this POM file that already contains redundant versions. If you think the redundancy should be eliminated, remove it from your existing code in a separate PR and then I will follow suit in this PR.

pom.xml Outdated
@@ -226,6 +204,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
Copy link
Member

Choose a reason for hiding this comment

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

same here

Copy link
Member Author

Choose a reason for hiding this comment

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

I am just being consistent with your other code in this POM file that already contains redundant versions. If you think the redundancy should be eliminated, remove it from your existing code in a separate PR and then I will follow suit in this PR.

pom.xml Outdated
@@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.69</version>
<version>4.73</version>
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated change already part of dependabot.

Copy link
Member Author

Choose a reason for hiding this comment

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

But you haven't merged it, yet? So as long as trunk doesn't contain it, it is a valid change.

@uhafner uhafner added the enhancement Enhancement of existing functionality label Sep 4, 2023
@basil
Copy link
Member Author

basil commented Sep 4, 2023

I am denying the request for changes, for the reasons explained above.

@uhafner uhafner merged commit ff19b07 into jenkinsci:master Sep 4, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants