git: 3145324cabdd - main - devel/gradle8: New port: Project automation tool

From: Jose Alonso Cardenas Marquez <acm_at_FreeBSD.org>
Date: Sun, 02 Feb 2025 08:08:34 UTC
The branch main has been updated by acm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3145324cabdd16ca61110fb7bcdbd50485a616f9

commit 3145324cabdd16ca61110fb7bcdbd50485a616f9
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2025-02-02 07:57:44 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2025-02-02 08:05:41 +0000

    devel/gradle8: New port: Project automation tool
    
    Gradle is build automation evolved.
    
    Gradle can automate the building, testing, publishing, deployment
    and more of software packages or other types of projects such as
    generated static websites, generated documentation or indeed anything
    else.
    
    Gradle combines the power and flexibility of Ant with the dependency
    management and conventions of Maven into a more effective way to
    build. Powered by a Groovy DSL and packed with innovation, Gradle
    provides a declarative way to describe all kinds of builds through
    sensible defaults. Gradle is quickly becoming the build system of
    choice for many open source projects, leading edge enterprises and
    legacy automation challenges.
    
    See also <https://github.com/gradle/gradle>.
    
    security/zaproxy is broken with latest version of gradle (8.12.1).
    gradle 8.8 is the latest working version with security/zaproxy
---
 devel/Makefile                |  1 +
 devel/gradle8/Makefile        | 32 ++++++++++++++++++++++++++++++++
 devel/gradle8/distinfo        |  3 +++
 devel/gradle8/files/gradle.in |  3 +++
 devel/gradle8/pkg-descr       | 16 ++++++++++++++++
 5 files changed, 55 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 496582e360e0..bdb49a76f5d3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -937,6 +937,7 @@
     SUBDIR += gradle-completion
     SUBDIR += gradle5
     SUBDIR += gradle6
+    SUBDIR += gradle8
     SUBDIR += gradle62
     SUBDIR += gradle761
     SUBDIR += grantlee5
diff --git a/devel/gradle8/Makefile b/devel/gradle8/Makefile
new file mode 100644
index 000000000000..f5d603a26bb3
--- /dev/null
+++ b/devel/gradle8/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	gradle
+PORTVERSION=	8.8
+CATEGORIES=	devel java
+MASTER_SITES=	https://services.gradle.org/distributions/
+EXTRACT_SUFX=	-bin.zip
+PKGNAMESUFFIX=	8
+
+MAINTAINER=	acm@FreeBSD.org
+COMMENT=	Project automation tool
+WWW=		https://www.gradle.org/
+
+LICENSE=	APACHE20 BSD3CLAUSE CDDL EPL LGPL21+ MIT MPL20
+LICENSE_COMB=	multi
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cpe java zip
+
+CONFLICTS_INSTALL=	gradle gradle6 gradle62 gradle761
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+SUB_FILES=	gradle
+SUB_LIST=	JAVA=${JAVA} \
+		PORTVERSION=${PORTVERSION}
+PLIST_FILES=	bin/gradle${PKGNAMESUFFIX}
+PORTDATA=	*
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKDIR}/gradle ${STAGEDIR}${PREFIX}/bin/gradle${PKGNAMESUFFIX}
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${STAGEDIR}${DATADIR})
+
+.include <bsd.port.mk>
diff --git a/devel/gradle8/distinfo b/devel/gradle8/distinfo
new file mode 100644
index 000000000000..9ebe1365526b
--- /dev/null
+++ b/devel/gradle8/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1738481440
+SHA256 (gradle-8.8-bin.zip) = a4b4158601f8636cdeeab09bd76afb640030bb5b144aafe261a5e8af027dc612
+SIZE (gradle-8.8-bin.zip) = 138039528
diff --git a/devel/gradle8/files/gradle.in b/devel/gradle8/files/gradle.in
new file mode 100644
index 000000000000..fde29278e346
--- /dev/null
+++ b/devel/gradle8/files/gradle.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+DEFAULT_JVM_OPTS="-Xmx64m -Xms64m -javaagent:%%DATADIR%%/lib/agents/gradle-instrumentation-agent-%%PORTVERSION%%.jar"
+exec "java" -Dorg.gradle.native=false $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS -classpath "%%DATADIR%%/lib/gradle-launcher-%%PORTVERSION%%.jar:$CLASSPATH" org.gradle.launcher.GradleMain "$@"
diff --git a/devel/gradle8/pkg-descr b/devel/gradle8/pkg-descr
new file mode 100644
index 000000000000..d4007bbda526
--- /dev/null
+++ b/devel/gradle8/pkg-descr
@@ -0,0 +1,16 @@
+Gradle is build automation evolved.
+
+Gradle can automate the building, testing, publishing, deployment
+and more of software packages or other types of projects such as
+generated static websites, generated documentation or indeed anything
+else.
+
+Gradle combines the power and flexibility of Ant with the dependency
+management and conventions of Maven into a more effective way to
+build. Powered by a Groovy DSL and packed with innovation, Gradle
+provides a declarative way to describe all kinds of builds through
+sensible defaults. Gradle is quickly becoming the build system of
+choice for many open source projects, leading edge enterprises and
+legacy automation challenges.
+
+See also <https://github.com/gradle/gradle>.