diff options
Diffstat (limited to 'installer/install-groovy-language-server.sh')
-rwxr-xr-x | installer/install-groovy-language-server.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/installer/install-groovy-language-server.sh b/installer/install-groovy-language-server.sh new file mode 100755 index 0000000..6b33f55 --- /dev/null +++ b/installer/install-groovy-language-server.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +cd $(dirname $0) + +server_dir="../servers/groovy-language-server" +[ -d $server_dir ] && rm -rf $server_dir +mkdir $server_dir && cd $server_dir + +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 |