Date: Wednesday, October 9, 2019 @ 14:54:53 Author: anthraxx Revision: 514358
upgpkg: gradle 5.6.2-2 hard wire to java 11 (13 is incompatible) Currently java 13 is incompatible and 12 is EOL, therefor lets hard wire gradle runtime to java11 until gradle 6 is released. https://github.com/gradle/gradle/issues/8681 gradle can use other (older) environments if specified accordingly via its options. Modified: gradle/trunk/PKGBUILD ----------+ PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-10-09 14:10:45 UTC (rev 514357) +++ PKGBUILD 2019-10-09 14:54:53 UTC (rev 514358) @@ -6,12 +6,12 @@ pkgbase=gradle pkgname=('gradle' 'gradle-doc' 'gradle-src') pkgver=5.6.2 -pkgrel=1 +pkgrel=2 pkgdesc='Powerful build system for the JVM' url='https://gradle.org/' arch=('any') license=('Apache') -depends=('java-environment' 'bash') +depends=('java-environment=11' 'bash') makedepends=('git' 'gradle' 'asciidoc' 'xmlto' 'kotlin' 'groovy' 'java-environment=11') source=(https://services.gradle.org/distributions/${pkgbase}-${pkgver}-src.zip ${pkgbase}.sh) @@ -20,6 +20,13 @@ sha512sums=('ad91ce5153c39bd21aaee2011b412358c4196a8106f7d83262b065bad650a15e7a5105d47fc5a21e400fbb366cd5259a60761779f0e76ec94e7401021a6f747b' 'f38e9b26e22948366acf6580d6f38e2c88c3791c425b24922368fe1bc78c744fa516a03ffdbef02e3755859da620a6259997d4b4e5f97e3dc8cb49b74a694616') +prepare() { + cd ${pkgbase}-${pkgver} + # https://github.com/gradle/gradle/issues/8681 + sed 's|JAVACMD="java"|JAVACMD="/usr/lib/jvm/java-11-openjdk/bin/java"|' -i gradlew \ + subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +} + build() { cd ${pkgbase}-${pkgver} export PATH="/usr/lib/jvm/java-11-openjdk/bin:${PATH}"