You do not have to define a totally separate build, you can have two Java versions available in one build environment. We only require the scanner to be launched with Java 11, the rest of your build process can still use Java 8 in the same environment.