https://kotlinlang.org logo
#ktor
Title
# ktor
d

Didier Villevalois

07/28/2022, 3:36 PM
Hi all! It seems the gradle build of Ktor is configured to use a JDK 11. Therefore, the unix domain socket tests (requiring JDK 16+) are never run. How can I force the JDK used for tests to a particular JDK version?
a

Aleksei Tirman [JB]

07/28/2022, 4:05 PM
@e5l
d

Didier Villevalois

07/28/2022, 4:19 PM
I figured out that if I change
8
to
16
in https://github.com/ktorio/ktor/blob/main/build.gradle.kts#L177, I can run the tests with JDK 16. Maybe we could add a command-line flag to override the default JDK? Or maybe this should be done only for running tests?