git: 91eb437a9e1d - main - devel/gradle5: pin to jdk8 or jdk11
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Dec 2025 18:50:15 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=91eb437a9e1d885205fdd9789aab112742b8c1b8
commit 91eb437a9e1d885205fdd9789aab112742b8c1b8
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-14 11:20:38 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-29 18:49:58 +0000
devel/gradle5: pin to jdk8 or jdk11
Fails on runtime with newer jdk when building its sole dependency misc/elki.
When compiling in poudriere with DEFAULT_VERSIONS+=java=21:
===> Building for elki-0.7.1.1166_1
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit>(VMPluginFactory.java:43)
The gradle documentation also states that you need a newer Gradle version for jdk12+.
https://docs.gradle.org/current/userguide/compatibility.html#java_runtime
PR: 291657
Approved-By: maintainer timeout
---
devel/gradle5/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/devel/gradle5/Makefile b/devel/gradle5/Makefile
index 073e2df6e762..56f8b4b7eb63 100644
--- a/devel/gradle5/Makefile
+++ b/devel/gradle5/Makefile
@@ -12,6 +12,7 @@ WWW= https://www.gradle.org/
LICENSE= APACHE20
USES= cpe java zip
+JAVA_VERSION= 8 11 # Fails on runtime with jdk 12+.
NO_ARCH= yes
NO_BUILD= yes
DATADIR= ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}