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

Vaadin-gradle-plugin must support Gradle Toolchains #19339

Open
mr-serjey opened this issue May 8, 2024 · 0 comments
Open

Vaadin-gradle-plugin must support Gradle Toolchains #19339

mr-serjey opened this issue May 8, 2024 · 0 comments

Comments

@mr-serjey
Copy link

Motivation

UI projects utilizing the vaadin-gradle-plugin should not be constrained by the Java version used to run Gradle. Otherwise, it becomes a significant obstacle for projects to upgrade.

Solution

The vaadin-gradle-plugin must leverage Gradle's toolchains for building UI projects. Gradle introduced the Java toolchain mechanism to prevent situations where Gradle or its plugins, such as vaadin-gradle-plugin, restrict the JDK version for project compilation and execution. Therefore, even if Gradle itself cannot run on the latest Java version, the Java toolchain enables the compilation and execution of project classes using the latest JDK.

Alternatives considered

There is no alternative to this, since UI project usually stays on top of the other modules in multitier architecture, and so can not consume the other modules if they have higher version of java classes.

Additional context

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

No branches or pull requests

2 participants