petr-panteleyev / jpackage-gradle-plugin

JPackage Gradle Plugin
https://codeberg.org/petr-panteleyev/jpackage-gradle-plugin
BSD 2-Clause "Simplified" License
97 stars 13 forks source link

Upgrade Gradle to 7.5.1 #17

Closed sebkur closed 2 years ago

sebkur commented 2 years ago

When trying to build the project on Debian in order to import the project into IntelliJ and work on the project, I get errors during the Gradle configuration phase. Gradle tries to probe the different JDKs installed on the system in order to select the right toolchain. While doing that it fails with some of the directories available under /usr/lib/jvm such as /usr/lib/jvm/openjdk-11/ because they are not proper JVMs. That's normal for Debian at least as the system puts the sources for the installed JVMs to that location in separate directories.

This is also described in this upstream Gradle issue with this merged pull request being the solution. It got merged Nov 12, 2020 while Gradle 6.7 used in this project was release Oct 14, 2020. I'm not sure which Gradle version is the first one to include this fix (maybe 6.7.1 released on Nov 16, 2020), however I suggest to simply upgrade to the currently latest version unless there's a reason not to.

sebkur commented 2 years ago

I simply ran ./gradlew wrapper --gradle-version 7.5.1 to upgrade.

petr-panteleyev commented 2 years ago

Issue was fixed in 6.7.1: https://docs.gradle.org/6.7.1/release-notes.html#fixed-issues Updated to 6.7.1 then.

sebkur commented 2 years ago

Thanks!