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

[MCLEAN-110, MCLEAN-124, MCLEAN-126, ] Merge 3.x to 4.x #86

Merged
merged 19 commits into from
Feb 19, 2025

Conversation

peterdemaeyer
Copy link
Contributor

This is a PR for a merge of 3.x maven-clean-plugin-3.x to 4.x master. In particular, it includes the changes in the context of MCLEAN-110, MCLEAN-124, MCLEAN-126 and nothing else. There were some conflicts and differences between 3.x and 4.x, but I assumed they were intentional so I kept the 4.x behavior and adapted tests accordingly where needed. To preserve the nature of the merge commit, I strongly recommend merging this PR as a regular merge and not a squash merge.

peterdemaeyer and others added 11 commits November 6, 2024 09:22
… reason in case of failure (apache#60)

* MCLEAN-124 Leverage Files.delete(Path) API to provide more accurate reason in case of failure

* Use Mockito + fix unit tests for Windows

* Renamed variable error -> failure

* Removed the resetting of permissions in tests, relying on JUnit @tempdir to take care of permissions issues when clearing the temporary directory

* Fixed typo a -> an

* Simplified the setting of permissions in tests
(cherry picked from commit f4e99f5)
Bumps [org.apache.maven.plugins:maven-plugins](https://github.com/apache/maven-parent) from 42 to 43.
- [Release notes](https://github.com/apache/maven-parent/releases)
- [Commits](https://github.com/apache/maven-parent/commits)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-plugins
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 30b89ca)
Bumps [org.codehaus.plexus:plexus-testing](https://github.com/codehaus-plexus/plexus-testing) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/codehaus-plexus/plexus-testing/releases)
- [Commits](codehaus-plexus/plexus-testing@plexus-testing-1.3.0...plexus-testing-1.4.0)

---
updated-dependencies:
- dependency-name: org.codehaus.plexus:plexus-testing
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
* Bump mavenVersion from 3.6.3 to 3.9.9

Bumps `mavenVersion` from 3.6.3 to 3.9.9.

Updates `org.apache.maven:maven-plugin-api` from 3.6.3 to 3.9.9
- [Release notes](https://github.com/apache/maven/releases)
- [Commits](apache/maven@maven-3.6.3...maven-3.9.9)

Updates `org.apache.maven:maven-core` from 3.6.3 to 3.9.9

---
updated-dependencies:
- dependency-name: org.apache.maven:maven-plugin-api
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.apache.maven:maven-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Preserve prerequisites as 3.6.3

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Slawomir Jaranowski <s.jaranowski@gmail.com>
Bumps [org.apache.maven.resolver:maven-resolver-api](https://github.com/apache/maven-resolver) from 1.1.1 to 1.9.22.
- [Release notes](https://github.com/apache/maven-resolver/releases)
- [Commits](apache/maven-resolver@maven-resolver-1.1.1...maven-resolver-1.9.22)

---
updated-dependencies:
- dependency-name: org.apache.maven.resolver:maven-resolver-api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@slawekjaranowski
Copy link
Member

@peterdemaeyer please look at #84 I will try do the similar 😄

@peterdemaeyer
Copy link
Contributor Author

@peterdemaeyer please look at #84 I will try do the similar 😄

@slawekjaranowski ha, I see now. I prefer your approach for MCLEAN-124 because it aligns the implementations on 3.x and 4.x by preferring the original 3.x solution. I just didn't realize I was allowed to do that, otherwise I would have done the same. :-)

The benefit of this PR is that it is a merge PR for not only MCLEAN-124 but anything else that wasn't merged from 3.x yet, which is just 2 more issues, and I noticed that some parts of the code had already been applied to 4.x via some other way.

I think it's best that #84 gets merged first, and then I need to redo this PR.

@slawekjaranowski
Copy link
Member

@peterdemaeyer #84 merged

Copy link
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

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

LGTM

@slawekjaranowski
Copy link
Member

@peterdemaeyer do you have a time and wish to rebase this ...

@slawekjaranowski slawekjaranowski added the waiting-for-feedback Waiting for 90 days until issues or pull request will be closed label Feb 15, 2025
slawekjaranowski and others added 5 commits February 15, 2025 18:08
~ Conflicts:
~	.github/workflows/release-drafter.yml
~	pom.xml
~	src/it/dangling-symlinks/setup.groovy
~	src/it/symlink-dont-follow/setup.groovy
~	src/main/java/org/apache/maven/plugins/clean/CleanMojo.java
~	src/main/java/org/apache/maven/plugins/clean/Cleaner.java
~	src/test/java/org/apache/maven/plugins/clean/CleanerTest.java
@slawekjaranowski slawekjaranowski merged commit f52fc9e into apache:master Feb 19, 2025
8 checks passed
@slawekjaranowski
Copy link
Member

@peterdemaeyer thanks

@github-actions github-actions bot added this to the 4.0.0-beta-3 milestone Feb 19, 2025
@github-actions github-actions bot removed the waiting-for-feedback Waiting for 90 days until issues or pull request will be closed label Feb 19, 2025
@peterdemaeyer peterdemaeyer deleted the master-tmp-merge-3.x branch February 19, 2025 11:06
@jira-importer
Copy link
Collaborator

Resolve #193

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

Successfully merging this pull request may close these issues.

5 participants