|
|
От: |
Dair
|
|
| Дата: | 22.09.24 07:37 | ||
| Оценка: | |||
./gradlew buildImageFAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':setupJibLocal'.
> You're trying to build an image with JRE 19 while your project's JDK or 'java.targetCompatibility' is 20. Please use a higher version of an image JRE through the 'ktor.docker.jreVersion' extension in the build file, or set the 'java.targetCompatibility' property to a lower version.
ktor {
docker {
jreVersion.set(JavaVersion.VERSION_20)
localImageName.set("my-server")
}
}