pkg(groovy-3.0.7): Add groovy 3.0.7 (#202)

This commit is contained in:
Dan Vargas 2021-04-06 00:07:42 -05:00 committed by GitHub
parent 0ee5003533
commit ba8a0bc377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 0 deletions

13
packages/groovy/3.0.7/build.sh vendored Executable file
View File

@ -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

5
packages/groovy/3.0.7/environment vendored Normal file
View File

@ -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

5
packages/groovy/3.0.7/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "groovy",
"version": "3.0.7",
"aliases": ["groovy", "gvy"]
}

3
packages/groovy/3.0.7/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
groovy "$@"

1
packages/groovy/3.0.7/test.groovy vendored Normal file
View File

@ -0,0 +1 @@
println 'OK'