Generate uber jar with modules with different Java versions

Hi!

I have a project(Root) with modules A, B and C. Root and module A uses java 17 and B and C uses Java 21.

I’m using the shadow plugin (jengelman). When I use shadowJar to generate a uber jar with all modules (including root) task it fails with the message “Unsupported class file major version 65”

Where do you get that error?
What is the stacktrace?
What is your goal?
What is your question?