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

Leverage Gradle toolchain configuration for Liberty server tasks (start, dev mode) and dev mode compile #792

Open
scottkurz opened this issue Jan 11, 2023 · 1 comment

Comments

@scottkurz
Copy link
Member

It could be useful to use a different JDK for running Gradle itself as for running Liberty tasks: e.g. the server start, as well as dev mode compile.

As noted in https://docs.gradle.org/current/userguide/toolchains.html this could look like:

java {
   toolchain {
        languageVersion = JavaLanguageVersion.of(11)
    }
}

I'm sure there's a variety of use cases... one that comes to my mind is say I have a mix of Gradle 6.x and 7.x scripts, and so would like to use a common Java 11 to run Gradle. I would like to encode the Liberty app/server Java version in the project, which might be either 8, 11, or 17.

@sreich
Copy link

sreich commented Oct 11, 2023

I am interested in seeing this, as I have us utilizing toolchains in our company (as is suggested best practice, by Gradle and others)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Target feature release
Development

No branches or pull requests

2 participants