Skip to content

Commit 9375c95

Browse files
committed
add missing gson library for LSP (see #564)
1 parent 389051f commit 9375c95

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

java/build.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@
5353
<fileset id="lsp4j.files" dir="mode">
5454
<include name="org.eclipse.lsp4j.jar" />
5555
<include name="org.eclipse.lsp4j.jsonrpc.jar" />
56+
<include name="gson.jar" />
5657
</fileset>
5758

5859
<condition property="lsp4j.present">
59-
<resourcecount refid="lsp4j.files" when="eq" count="2" />
60+
<resourcecount refid="lsp4j.files" when="eq" count="3" />
6061
</condition>
6162

6263
<!-- ok to ignore failed downloads if we at least have a version that's local -->
@@ -79,6 +80,11 @@
7980
dest="mode/org.eclipse.lsp4j.jsonrpc.jar"
8081
ignoreerrors="${lsp4j.ignorable}"
8182
usetimestamp="true" />
83+
84+
<get src="https://repo1.maven.org/maven2/com/google/code/gson/gson/2.9.1/gson-2.9.1.jar"
85+
dest="mode/gson.jar"
86+
ignoreerrors="${lsp4j.ignorable}"
87+
usetimestamp="true" />
8288
</target>
8389

8490
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

java/mode/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
JavaMode.jar
22
org.eclipse.lsp4j.jar
33
org.eclipse.lsp4j.jsonrpc.jar
4+
gson.jar
45

java/processing4-java.iml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,14 @@
188188
<SOURCES />
189189
</library>
190190
</orderEntry>
191+
<orderEntry type="module-library">
192+
<library name="gson">
193+
<CLASSES>
194+
<root url="jar://$MODULE_DIR$/mode/gson.jar!/" />
195+
</CLASSES>
196+
<JAVADOC />
197+
<SOURCES />
198+
</library>
199+
</orderEntry>
191200
</component>
192201
</module>

0 commit comments

Comments
 (0)