aboutsummaryrefslogtreecommitdiff
path: root/installer/install-groovy-language-server.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installer/install-groovy-language-server.sh')
-rwxr-xr-xinstaller/install-groovy-language-server.sh21
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