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

Wrong version of Gradle used #190

Closed
hrstoyanov opened this issue Jul 3, 2024 · 2 comments · Fixed by #220
Closed

Wrong version of Gradle used #190

hrstoyanov opened this issue Jul 3, 2024 · 2 comments · Fixed by #220
Assignees
Labels
Apache-Netbeans bug Something isn't working
Milestone

Comments

@hrstoyanov
Copy link

hrstoyanov commented Jul 3, 2024

I have a fully configured Gradle projects witjh Java 22.0.1 and Gradle 8.8. When I open it with this plugin, I get this error:

Project webapp: Unsupported Java Runtime: The Java version: 22, that is selected for the project is not supported by Gradle 8.6.The IDE will attempt to use Gradle 8.6 to gather the project information. Possible solutions: * Upgrade your Gradle version on your project * Select Java Runtime 21 (or below), on Build > Gradle Execution settings, to avoid this problem!

Apparently there is some Gradle 8.6 bundled and this plugin fails to read my project's /gradle folder where there is a gradle-wrapper.properties file which clearly specify the Gradle version used (8.8 in my case), as well as the gradle-wrapper.jar fie itself.

Also, the instruction in the popup makes little sense - I tried Command+Shift+P (MacOs) but there is no "Gradle Execution settings"?

@Achal1607
Copy link
Member

Hey @hrstoyanov,
Are you still facing this issue?
I tried to create a gradle project and tried to reproduce this but was unable to do it.

@Achal1607 Achal1607 added question Further information is requested Non-reproducible Unable to recreate/reproduce the issue described labels Jul 4, 2024
@hrstoyanov
Copy link
Author

hrstoyanov commented Jul 4, 2024

yes, when I open a folder with Gradle build file, this plugin offers to initialize and then the popups happen:

Screenshot 2024-07-04 at 4 17 32 PM

... So it looks like initializing a Gradle project always happens first with the built into the netbeans language server Gradle engine, which is way behind compared with the current Gradle distribution, hence the issues with Java 22

@Achal1607 Achal1607 added bug Something isn't working and removed question Further information is requested Non-reproducible Unable to recreate/reproduce the issue described labels Jul 31, 2024
@Achal1607 Achal1607 added the In-Progress For the issues being worked on label Jul 31, 2024
@Achal1607 Achal1607 added this to the JVSC 22.1.2 milestone Jul 31, 2024
@Achal1607 Achal1607 self-assigned this Jul 31, 2024
@Achal1607 Achal1607 added Apache-Netbeans and removed In-Progress For the issues being worked on labels Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apache-Netbeans bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants