-
Notifications
You must be signed in to change notification settings - Fork 874
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
Configure latest released wrapper in new Gradle project #6333
Configure latest released wrapper in new Gradle project #6333
Conversation
Well, this could work. Though it comes with an API (SPI) change which shall be documented with Then I've realized, that we do not have an option at the moment to pass version to the wrapper without SPI change, which i wanted to avoid in this late of the release phase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SPI changes needs to be documented.
Thanks @lkishalmi Yes, I didn't see a way to fix this without adding any API. Which we'd ideally not do so late. But if we're not waiting on the final release of 8.3, it feels like we should try not to let that leak into user projects. This seemed the minimal way to achieve that? I can't follow up, or look at what the test is complaining about, for a couple of days. Feel free to take and alter, or close if you prefer. |
Well, I do not think it would be that big an issue if NB 19 would be delivered with 8.3-rc-1 tooling. We actually did that with NB 17 and Gradle 8.0-rc-1, for the same reason. The tooling API has to work on recent JVM-s, |
Sure, I don't have an issue with shipping the rc1 of the tooling API. Just think we should try not to have that being the default version of Gradle written into new projects. Incidentally, as far as I know, the version of the tooling API in NB18 seems to work fine on JDK20. |
OK, the tests for the GradleMultiWizardIterator seem to not like this change, although I cannot replicate that result locally. Assuming that's not the most likely template people will use, let's leave that as it was for now. Will update docs and squash. |
…lease candidate. Fix typo in Gradle project problems message. Document the API changes.
250f727
to
9a3513f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you!
There is one bummer with this solution. the latest
version would be 8.2.1
till 8.3
is not out, so until then this solution would actually downgrade the Gradle version, which could be a problem as well.
It seems Gradle 8.3-rc-4 came out last week, so probably by the time NB19 comes out the final 8.3
will be out as well, so I approve this change.
Thanks @lkishalmi Actually, There is a workaround to the version downgrade to |
Probably it's time to remove that Wrapper button in NB20... |
So that we don't get a release candidate wrapper when running the new Gradle project wizard, configure it to use version
latest
.This highlights an issue that the wrapper is actually created by the init task. The wrapper checkbox currently has no effect except for running the wrapper task again.
Second commit fixes a typo in the project problems dialog.
Not sure if this is a better fallback solution for NB19 or not?