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

KTOR-7831 Configure Gradle Daemon JDK #4500

Merged
merged 3 commits into from
Dec 12, 2024
Merged

KTOR-7831 Configure Gradle Daemon JDK #4500

merged 3 commits into from
Dec 12, 2024

Conversation

osipxd
Copy link
Member

@osipxd osipxd commented Nov 22, 2024

Subsystem
Infrastructure

Motivation
KTOR-7831 Use Gradle JVM toolchain for Daemon
To make builds more reproducible and independent of the environment in which they’re run.

Solution

  • Specify Daemon JVM in gradle/gradle-daemon-jvm.properties
  • Migrate test server to jetty-jakarta

Depends on:

The only problem is that Gradle Daemon toolchains aren’t properly supported in IDEA, so it is required to manually configure the IDEA to use JDK 21 in the "Project Structure" window:

It is better to review commit-by-commit

@osipxd osipxd self-assigned this Nov 22, 2024
@osipxd osipxd force-pushed the osipxd/gradle-daemon-jdk branch from 599afe3 to 158fc2d Compare November 22, 2024 16:51
@osipxd osipxd changed the title Specify Gradle Daemon JDK KTOR-7831 Specify Gradle Daemon JDK Nov 22, 2024
@osipxd osipxd force-pushed the osipxd/gradle-daemon-jdk branch 4 times, most recently from 63a9eff to 32bb879 Compare November 23, 2024 11:18
@osipxd osipxd marked this pull request as draft November 25, 2024 09:35
@osipxd osipxd force-pushed the osipxd/gradle-daemon-jdk branch 3 times, most recently from 69be986 to 8203a49 Compare November 25, 2024 10:12
@osipxd osipxd changed the base branch from main to osipxd/jdk-8-tests November 25, 2024 10:14
@osipxd osipxd force-pushed the osipxd/jdk-8-tests branch 3 times, most recently from d146768 to 3537e41 Compare November 26, 2024 16:48
@osipxd osipxd force-pushed the osipxd/jdk-8-tests branch 2 times, most recently from dc57d34 to 67b7968 Compare December 4, 2024 17:25
Base automatically changed from osipxd/jdk-8-tests to main December 4, 2024 18:18
@osipxd osipxd force-pushed the osipxd/gradle-daemon-jdk branch 3 times, most recently from b1377b4 to d15713f Compare December 10, 2024 16:50
@osipxd osipxd marked this pull request as ready for review December 10, 2024 16:58
@osipxd osipxd force-pushed the osipxd/gradle-daemon-jdk branch from d15713f to 6972bd3 Compare December 10, 2024 17:13
@osipxd osipxd changed the title KTOR-7831 Specify Gradle Daemon JDK KTOR-7831 Configure Gradle Daemon JDK Dec 10, 2024
@osipxd osipxd requested a review from bjhham December 11, 2024 14:56
@osipxd
Copy link
Member Author

osipxd commented Dec 11, 2024

JS builds should become green after e5l/ktor-test-image#3 merged and published.

@osipxd osipxd force-pushed the osipxd/gradle-daemon-jdk branch from 6972bd3 to 9a6715e Compare December 11, 2024 16:45
@osipxd osipxd force-pushed the osipxd/gradle-daemon-jdk branch from 9a6715e to 92df9a1 Compare December 11, 2024 22:31
@osipxd osipxd requested a review from e5l December 12, 2024 08:07
Copy link
Contributor

@bjhham bjhham left a comment

Choose a reason for hiding this comment

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

Screenshot 2024-12-12 at 10 43 54

Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

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

lgtm, btw we might try netty as well

@osipxd osipxd merged commit e77cf49 into main Dec 12, 2024
16 checks passed
@osipxd osipxd deleted the osipxd/gradle-daemon-jdk branch December 12, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants