diff --git a/development/gradle/README b/development/gradle/README index 3ce5fb3de35..d663bcb5d7c 100644 --- a/development/gradle/README +++ b/development/gradle/README @@ -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. diff --git a/development/gradle/gradle.SlackBuild b/development/gradle/gradle.SlackBuild index 25ee181512f..80d887c8795 100644 --- a/development/gradle/gradle.SlackBuild +++ b/development/gradle/gradle.SlackBuild @@ -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. @@ -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 - @@ -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 diff --git a/development/gradle/gradle.info b/development/gradle/gradle.info index d18a2e981e6..96b5cf68d87 100644 --- a/development/gradle/gradle.info +++ b/development/gradle/gradle.info @@ -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"