GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.58k stars 1.43k forks source link

Jib extension built using Java 15 or later doesn't get executed #4174

Open breun opened 7 months ago

breun commented 7 months ago

Environment:

Description of the issue:

We have created an internal company extension for Jib, which works fine, but we noticed that if we build it using Java 15 or later, then it doesn't get executed. When we build it using Java 14 or older then it does work.

Expected behavior:

We expect the extension to get executed.

Steps to reproduce:

  1. Create a Jib extension and build it using Java 15 or later
  2. Add the extension to a project
  3. Run Jib

Additional Information:

I expect this behavior is caused by Jib's use of Sisu 0.3.5 (released in 2021). Sisu 0.3.5 uses a version of ASM which is not recent enough to work with Java 15 or later. Sisu 0.9.0.M2 uses ASM 9.5, which supports Java up to 21.