Yuna<p>Dear Gradle, Why So Stubborn?<br>Do I do something wrong?</p><p>Watching juniors try to set up a project and being greeted by cryptic stack traces like it's some kind of initiation ritual.</p><p>`Unsupported class file major version 61`<br>`invalid CEN header zip64 no access package`, ...</p><p>Java can compile code for older versions just fine. <br>It's literally designed for that. <br>Oh why, must Gradle behave like a bitter librarian who refuses to hand over a book unless I whisper the exact Dewey Decimal Code?<br>Every other Language will laugh again at java, seeing this.</p><p>💡 Why is Gradle bound to a java version? And if Gradle knows it needs Java 11… why doesn't it just do this for me?<br>Like using `/usr/libexec/java_home -v 11` in background?</p><p>🤖 Is there a clean way to force Gradle into submission without adding another tool like SDKMAN or jabba or YunaBraska/gradle-java-fix or whatever the trendy painkiller of the week is?</p><p><a href="https://hachyderm.io/tags/Java" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Java</span></a> <a href="https://hachyderm.io/tags/Gradle" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Gradle</span></a> <a href="https://hachyderm.io/tags/BuildTools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildTools</span></a> <a href="https://hachyderm.io/tags/DevHumor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DevHumor</span></a> <a href="https://hachyderm.io/tags/DeveloperProblems" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DeveloperProblems</span></a> <a href="https://hachyderm.io/tags/JDK" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JDK</span></a> <a href="https://hachyderm.io/tags/ProgrammingPain" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ProgrammingPain</span></a> <a href="https://hachyderm.io/tags/CleanCode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CleanCode</span></a> <a href="https://hachyderm.io/tags/SoftwareEngineering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareEngineering</span></a> <a href="https://hachyderm.io/tags/OpenJDK" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenJDK</span></a> <a href="https://hachyderm.io/tags/CodeNewbie" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CodeNewbie</span></a> <a href="https://hachyderm.io/tags/BackendDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BackendDev</span></a> <a href="https://hachyderm.io/tags/BuildFails" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BuildFails</span></a></p>