summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-05-06 20:45:53 +0200
committerMartin Polden <mpolden@mpolden.no>2021-05-06 20:47:50 +0200
commit687dc0db8d44cb6811010265030f93d39a0bcc95 (patch)
tree214f490ad6fd036ced2bd6c4dd84d6003de3cf28 /Makefile
parentc3bd5dd89547bc09eca630d252b3be271b6d262c (diff)
makefile: Download a concrete version of Eclipse JDT LS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 0b1c52f..d3a7e8c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
CURDIR ?= $(.CURDIR)
BREW ?= $(shell command -v brew 2> /dev/null)
-ECLIPSE_JDT ?= $(CURDIR)/eclipse.jdt.ls
+JDT_LS_HOME ?= $(CURDIR)/eclipse.jdt.ls
+JDT_LS_VERSION ?= 1.1.1-202105040117
LN_FLAGS := -sfn
COLOR := \033[32;01m
@@ -25,14 +26,14 @@ install-lsp-go:
go install golang.org/x/tools/gopls@latest
install-lsp-java:
- mkdir -p $(ECLIPSE_JDT)
- curl -fsSL https://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz | \
- tar -C $(ECLIPSE_JDT) -xf -
- @echo "eclipse jdt installed in $(COLOR)$(ECLIPSE_JDT)$(NO_COLOR)"
- @echo "eglot needs the following environment variables set:"
+ mkdir $(JDT_LS_HOME)
+ curl -fsSL https://download.eclipse.org/jdtls/milestones/$(firstword $(subst -, ,$(JDT_LS_VERSION)))/jdt-language-server-$(JDT_LS_VERSION).tar.gz | \
+ tar -C $(JDT_LS_HOME) -xf -
+ @echo "eclipse jdt ls $(JDT_LS_VERSION) installed in $(COLOR)$(JDT_LS_HOME)$(NO_COLOR)"
+ @echo "emacs/eglot needs the following environment variables set:"
@echo "- $(COLOR)JAVA_HOME$(NO_COLOR) containing the path to a jdk installation"
@printf -- "- $(COLOR)CLASSPATH$(NO_COLOR) containing $(COLOR)%s$(NO_COLOR)\n" \
- $(ECLIPSE_JDT)/plugins/org.eclipse.equinox.launcher_*.jar
+ $(JDT_LS_HOME)/plugins/org.eclipse.equinox.launcher_*.jar
install-lsp-python:
python3 -m pip install --user -U python-language-server