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

Adopt Gradle Toolchain for the JDK #2343

Closed
wants to merge 1 commit into from

Conversation

berngp
Copy link
Contributor

@berngp berngp commented Jun 29, 2022

Adopting the Gradle Toolchain for the JDK will make the build safer in machines that have multiple JDKs
installed and that by mistake can build the project using a JDK higher than the intended.

As defined in Gradle's docs, the toolchains will give us...

Executing the build (e.g. using gradle check) will now handle several things for you and others running your build

  1. Setup all compile, test and javadoc tasks to use the defined toolchain which may be different than the one Gradle itself uses
  2. Gradle detects locally installed JVMs
  3. Gradle chooses a JRE/JDK matching the requirements of the build (in this case a JVM supporting Java 8)
  4. If no matching JVM is found, it will automatically download a matching JDK from AdoptOpenJDK

Adopting the Gradle Toolchain for the JDK will make the build _safer_ in machines that have multiple JDKs
installed and that by mistake can build the project using a JDK higher than the intended.

As defined in [Gradle's docs](https://docs.gradle.org/current/userguide/toolchains.html), the toolchains will give us...

> Executing the build (e.g. using gradle check) will now handle several things for you and others running your build
> Setup all compile, test and javadoc tasks to use the defined toolchain which may be different than the one Gradle itself uses
> Gradle detects locally installed JVMs
> Gradle chooses a JRE/JDK matching the requirements of the build (in this case a JVM supporting Java 8)
> If no matching JVM is found, it will automatically download a matching JDK from AdoptOpenJDK
@violetagg violetagg added the type/enhancement A general enhancement label Jul 4, 2022
@violetagg violetagg added this to the 1.0.21 milestone Jul 4, 2022
@violetagg violetagg requested a review from a team July 4, 2022 08:13
@violetagg
Copy link
Member

@reactor/netty-team PTAL

Copy link
Member

@pderop pderop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested on my machine, looks good to me.

@violetagg
Copy link
Member

The failed test on Windows OS is not relevant

@violetagg
Copy link
Member

@berngp Thanks for the PR

@pderop Thanks for the review

violetagg pushed a commit that referenced this pull request Jul 4, 2022
Adopting the Gradle Toolchain for the JDK will make the build _safer_ in machines that have multiple JDKs
installed and that by mistake can build the project using a JDK higher than the intended.

As defined in [Gradle's docs](https://docs.gradle.org/current/userguide/toolchains.html), the toolchains will give us...

> Executing the build (e.g. using gradle check) will now handle several things for you and others running your build
> Setup all compile, test and javadoc tasks to use the defined toolchain which may be different than the one Gradle itself uses
> Gradle detects locally installed JVMs
> Gradle chooses a JRE/JDK matching the requirements of the build (in this case a JVM supporting Java 8)
> If no matching JVM is found, it will automatically download a matching JDK from AdoptOpenJDK
violetagg added a commit that referenced this pull request Jul 4, 2022
violetagg added a commit that referenced this pull request Jul 4, 2022
@violetagg
Copy link
Member

@berngp I merged manually the change in 1.0.x branch (6ec064f) then forward merged it to main (8b7fc89) and netty5 branches (bdb6e9a)

@violetagg violetagg closed this Jul 4, 2022
@berngp
Copy link
Contributor Author

berngp commented Jul 7, 2022

Thank you @violetagg for all your great work!

@berngp berngp deleted the feature/adopt-gradle-toolchains branch July 7, 2022 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants