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

newArtifactId changed to newArtifact in ChangePluginGroupIdAndArtifactId #4420

Closed
gsmet opened this issue Aug 15, 2024 · 4 comments · Fixed by #4421
Closed

newArtifactId changed to newArtifact in ChangePluginGroupIdAndArtifactId #4420

gsmet opened this issue Aug 15, 2024 · 4 comments · Fixed by #4421
Assignees
Labels
bug Something isn't working

Comments

@gsmet
Copy link
Contributor

gsmet commented Aug 15, 2024

👋

newArtifactId was renamed to newArtifact in ChangePluginGroupIdAndArtifactId.

This is very odd as not consistent with the rest of the properties (you have oldArtifactId but newArtifact). Also it breaks compatibility for anyone using the recipe.

The change was made here: https://github.com/openrewrite/rewrite/pull/3843/files#diff-a3496299541c5119d2fd48e331f97b62173789f41a9ec4f5f25f9e8454ab7518R59

And you can see that there are already a few people complaining there.

I know the change is not exactly recent but for whatever reason, it just popped up in the Quarkus Updates test.

It looks odd to me. Could someone confirm that it was intended?

Thanks!

@gsmet gsmet added the bug Something isn't working label Aug 15, 2024
gsmet added a commit to quarkusio/quarkus-updates that referenced this issue Aug 15, 2024
@timtebeek
Copy link
Contributor

Indeed looks accidental; Let's restore the original. Would you want to push that up?

@timtebeek timtebeek moved this to Backlog in OpenRewrite Aug 15, 2024
@gsmet
Copy link
Contributor Author

gsmet commented Aug 15, 2024

Working on it but I have a hard time building now:

> Failed to query the value of task ':rewrite-gradle:compileGroovy' property 'javaLauncher'.
   > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=8, vendor=any vendor, implementation=vendor-specific} for LINUX on x86_64.
      > No locally installed toolchains match and toolchain download repositories have not been configured.

Is there a way to run things without having to install Java 8 somewhere?

@gsmet
Copy link
Contributor Author

gsmet commented Aug 15, 2024

Well, I installed a good old Java 8 with SDKMAN! and I can go further.

@gsmet
Copy link
Contributor Author

gsmet commented Aug 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants