1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash set -e git clone --depth=1 https://github.com/prominic/groovy-language-server . ./gradlew build cat <<EOF >groovy-language-server #!/bin/sh DIR=\$(cd \$(dirname \$0); pwd) java -jar \$DIR/build/libs/groovy-language-server-all.jar EOF chmod +x groovy-language-server