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

Flatten repositories from JEP-229 plugins #802

Merged
merged 5 commits into from Jul 6, 2023

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Jul 6, 2023

This workarounds mojohaus/flatten-maven-plugin#362

and strips <repositories> from deployed pom for plugins using JEP-229.

Testing done

Submitter checklist

Edit tasklist title
Beta Give feedback Tasklist Submitter checklist, more options

Delete tasklist

Delete tasklist block?
Are you sure? All relationships in this tasklist will be removed.
  1. Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
    Options
  2. Ensure that the pull request title represents the desired changelog entry
    Options
  3. Please describe what you did
    Options
  4. Link to relevant issues in GitHub or Jira
    Options
  5. Link to relevant pull requests, esp. upstream and downstream changes
    Options
  6. Ensure you have provided tests - that demonstrates feature works or fixes the issue
    Options

This workarounds mojohaus/flatten-maven-plugin#362

and strips <repositories> from deployed pom for plugins using JEP-229
@Vlatombe Vlatombe requested a review from jglick July 6, 2023 11:56
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

Would also be great to have an IT covering the basic build cycle of a JEP-229-based plugin unlike

-Pconsume-incrementals
-Pmight-produce-incrementals
and the validation script could do some stuff like assert that the top-level POM elements are only those in a specified list.

pom.xml Show resolved Hide resolved
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
@Vlatombe
Copy link
Member Author

Vlatombe commented Jul 6, 2023

IT covering the basic build cycle of a JEP-229-based plugin

I'll see what I can do

@Vlatombe Vlatombe requested a review from jglick July 6, 2023 12:54
@Vlatombe Vlatombe added the bug label Jul 6, 2023
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

Nice!

src/it/cd-plugin/src/main/java/test/SampleRootAction.java Outdated Show resolved Hide resolved
src/it/cd-plugin/src/test/resources/test/expected.txt Outdated Show resolved Hide resolved
assert installedPom.text.contains("<scm>")
assert !installedPom.text.contains("<properties>")
assert !installedPom.text.contains("<dependencyManagement>")
assert !installedPom.text.contains("<repositories>")
Copy link
Member

Choose a reason for hiding this comment

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

(the point of the PR, FTR)

src/it/cd-plugin/invoker.properties Outdated Show resolved Hide resolved
Vlatombe and others added 2 commits July 6, 2023 16:46
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
@Vlatombe Vlatombe merged commit 4f81ec1 into jenkinsci:master Jul 6, 2023
2 checks passed
@Vlatombe Vlatombe deleted the flatten-repositories branch July 6, 2023 15:21
@basil
Copy link
Member

basil commented Jul 11, 2023

Does this need to be side-ported to https://github.com/jenkinsci/pom?

@Vlatombe
Copy link
Member Author

Good point, jenkinsci/pom#464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants