Dmytro Serdiuk
02/05/2024, 6:14 PMVampire
02/05/2024, 9:39 PMI couldn’t understand why bytecode is 1.8 if compileJava task has java version 11?Don't confuse bytecode created by
compileJava
with bytecode created by compileKotlin
.
Former will be 11, latter 8.
But the module metadata will know you need at least Java 11 to consume the lib, even if no Java sources were processed.
One of the reasons why it is better to set it consistentlyDmytro Serdiuk
02/05/2024, 9:40 PM