-
Notifications
You must be signed in to change notification settings - Fork 908
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
Make invalid Java selections impossible in the web UI #1041
Comments
Thanks for the suggestion. Unfortunately, with all of the different clients (web UI, CLI, IDE plugins) it isn't possible to disable invalid combinations consistently. For now, we've settled on adding a note to the generated |
Yeah, it is odd. There are some implementation details of how the service is implemented and describes it capabilities leaking out and that's unfortunate. The reason it works for dependencies is that the metadata allows a dependency to describe the versions of Spring Boot with which it is compatible. There's nothing similar for Java versions unfortunately but it would definitely be a nice thing to have. We'll have to see where #250 and our limited bandwidth takes us. |
Thanks for the explanation, appreciated. |
how to resolve the build issue as i am default getting 17 and Module demo SDK 11 is not compatible with the source version 17. Upgrade Module SDK in project settings to 17 or higher. Open project settings. |
@lohitharg16 I also encountered this and from reading the above comments, this is a limitation with the version of the UI where it cannot easily identify if the version of Java is compatible with the version of the spring framework version. Below taken from : https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions#jdk-version-range
You will see a note at the very top of your generated Looks like you can regenerate using version 2.x.x of Spring Boot and it works ok. Also the dependencies will be greyed out if they are not supported on the older version, which is helpful. It would be good to have a note though on the UI to indicate version 3.x.x requires Java 17 and above when you select anything lower. |
The site lets you select Spring Boot 3 + JDK 11 or 8. The generate (Maven) project will still have JDK 17 defined in it. Not a big, but UX can be improved to disable invalid combinations.
The text was updated successfully, but these errors were encountered: