Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions development/gradle/README
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
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 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.
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.
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.

Excluding Documentation
-----------------------

If you would like to exclude the documentation in the generated package,
you can use the following command when building the package:
If you would like to exclude the documentation in the generated
package, you can use the following command when building the package:

# INCLUDE_DOCS=NO ./gradle.Slackbuild

Dependencies
------------

Gradle runs on Java Virtual Machine (JVM). A JVM version between 8 and
24 is required to execute Gradle.
Gradle runs on Java Virtual Machine (JVM). A JVM version between
8 and 24 is required to execute Gradle.

In the link given below, you can find the java version supported by a
specific gradle release.
In the link given below, you can find the java version supported
by a specific gradle release.

I have tested this using zulu-openjdk17.

Expand Down
36 changes: 26 additions & 10 deletions development/gradle/gradle.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@

# Started by Arun Mascarenhas (arunmascarenhas[at]yahoo[dot]com)

# ------------------------------------------------------------------------------
# Variables & Environment
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=gradle
VERSION=${VERSION:-8.14.1}
PRGNAM=${PRGNAM:-gradle}
VERSION=${VERSION:-9.3.1}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

GRADLE_HOME=/usr/share/gradle

# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
Expand All @@ -52,20 +52,33 @@ OUTPUT=${OUTPUT:-/tmp}

set -e

rm -rf $PKG
mkdir -p $TMP $PKG/usr/share/java $PKG/$GRADLE_HOME $OUTPUT $PKG/usr/bin
cd $TMP
rm -rf ${PRGNAM}-$VERSION
WORK=$TMP/work-$PRGNAM
GRADLE_HOME=/usr/share/gradle

# ------------------------------------------------------------------------------
# Initialize & Unpack archive
echo ">> Initializing and unpacking archive"
rm -rf $PKG $WORK
mkdir -p $TMP $PKG $WORK $OUTPUT

cd $WORK
unzip $CWD/${PRGNAM}-$VERSION-all.zip
cd ${PRGNAM}-$VERSION

# ------------------------------------------------------------------------------
# Build and prepare package directory
echo ">> Building source code"
cd $WORK/${PRGNAM}-$VERSION
chown -R root:root .

cp -a bin lib init.d $PKG/$GRADLE_HOME/
PKG_GRADLE_HOME=${PKG%/}/${GRADLE_HOME#/}
mkdir -p $PKG_GRADLE_HOME
cp -a bin lib init.d $PKG_GRADLE_HOME/

mkdir -p $PKG/etc/profile.d/
install -m755 $CWD/$PRGNAM.csh $PKG/etc/profile.d/$PRGNAM.csh
install -m755 $CWD/$PRGNAM.sh $PKG/etc/profile.d/$PRGNAM.sh

mkdir -p $PKG/usr/bin
cd $PKG/usr/bin
ln -s $GRADLE_HOME/bin/gradle
cd -
Expand All @@ -84,5 +97,8 @@ cat $CWD/${PRGNAM}.SlackBuild > $PKG/usr/doc/${PRGNAM}-$VERSION/${PRGNAM}.SlackB
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

# ------------------------------------------------------------------------------
# Create package
echo ">> Creating package"
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
6 changes: 3 additions & 3 deletions development/gradle/gradle.info
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PRGNAM="gradle"
VERSION="8.14.1"
VERSION="9.3.1"
HOMEPAGE="http://www.gradle.org/"
DOWNLOAD="https://services.gradle.org/distributions/gradle-8.14.1-all.zip"
MD5SUM="b958c33f39156d56ef91dc93ceef24a9"
DOWNLOAD="https://services.gradle.org/distributions/gradle-9.3.1-all.zip"
MD5SUM="9047c95e66b2cbb7ef3ae5ee95f3c688"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="%README% zulu-openjdk17"
Expand Down