From ba8a0bc377ce74ace40903d89e3f36bfaeb1a4b4 Mon Sep 17 00:00:00 2001 From: Dan Vargas <10914883+dvargas46@users.noreply.github.com> Date: Tue, 6 Apr 2021 00:07:42 -0500 Subject: [PATCH] pkg(groovy-3.0.7): Add groovy 3.0.7 (#202) --- packages/groovy/3.0.7/build.sh | 13 +++++++++++++ packages/groovy/3.0.7/environment | 5 +++++ packages/groovy/3.0.7/metadata.json | 5 +++++ packages/groovy/3.0.7/run | 3 +++ packages/groovy/3.0.7/test.groovy | 1 + 5 files changed, 27 insertions(+) create mode 100755 packages/groovy/3.0.7/build.sh create mode 100644 packages/groovy/3.0.7/environment create mode 100644 packages/groovy/3.0.7/metadata.json create mode 100644 packages/groovy/3.0.7/run create mode 100644 packages/groovy/3.0.7/test.groovy diff --git a/packages/groovy/3.0.7/build.sh b/packages/groovy/3.0.7/build.sh new file mode 100755 index 0000000..ae1ecc5 --- /dev/null +++ b/packages/groovy/3.0.7/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Groovy depends on JDK8+ +mkdir -p java +cd java +curl "https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz" -o java.tar.gz +tar xzf java.tar.gz --strip-components=1 +rm java.tar.gz +cd .. + +curl -L "https://dl.bintray.com/groovy/maven/apache-groovy-binary-3.0.7.zip" -o groovy.zip +unzip -q groovy.zip +rm groovy.zip diff --git a/packages/groovy/3.0.7/environment b/packages/groovy/3.0.7/environment new file mode 100644 index 0000000..842a62b --- /dev/null +++ b/packages/groovy/3.0.7/environment @@ -0,0 +1,5 @@ +#!/bin/bash + +# Groovy requires JAVA_HOME to be set +export JAVA_HOME=$PWD/java +export PATH=$PWD/groovy-3.0.7/bin:$PATH diff --git a/packages/groovy/3.0.7/metadata.json b/packages/groovy/3.0.7/metadata.json new file mode 100644 index 0000000..b790007 --- /dev/null +++ b/packages/groovy/3.0.7/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "groovy", + "version": "3.0.7", + "aliases": ["groovy", "gvy"] +} diff --git a/packages/groovy/3.0.7/run b/packages/groovy/3.0.7/run new file mode 100644 index 0000000..e31d7d4 --- /dev/null +++ b/packages/groovy/3.0.7/run @@ -0,0 +1,3 @@ +#!/bin/bash + +groovy "$@" diff --git a/packages/groovy/3.0.7/test.groovy b/packages/groovy/3.0.7/test.groovy new file mode 100644 index 0000000..e4eb9d8 --- /dev/null +++ b/packages/groovy/3.0.7/test.groovy @@ -0,0 +1 @@ +println 'OK'