A way to disable IncompatibleBaseImageJavaVersionException
See original GitHub issueEnvironment:
- Jib version: 3.2.1
- Build tool: Gradle 7.4.1
- OS: Windows / Linux
Description of the issue:
I have a project where I build a jlinked runtime and that needs fonts to draw text onto images, so it needs a base image with fontconfig
.
I tried to use debian:stable-slim
and debian:stable
but they both don’t have fontconfig
included.
So I thought I use the smallest of the temuring images 8-jre
as it has fontconfig included and the Java version is irrelevant for the project as it has its own runtime.
But now Jib is yelling at me that it is incompatible.
Expected behavior:
A way to disable this warning as it does not apply here.
Log output:
Your project is using Java 17 but the base image is for Java 8, perhaps you should configure a Java 17-compatible base image using the ‘jib.from.image’ parameter, or set targetCompatibility= 8 or below in your build configuration
Issue Analytics
- State:
- Created a year ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
Jib will not allow overriding of this option.
Not really, still hoping you add this simple configuration option before I have to make that decision with a heavy heart. But it seems Jib is only intended for very narrow standard cases and not for flexibility. I also had to jump some other hoops before.