Skip to content

Commit

Permalink
add missing gson library for LSP (see #564)
Browse files Browse the repository at this point in the history
  • Loading branch information
benfry committed Nov 28, 2022
1 parent 389051f commit 9375c95
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 7 additions & 1 deletion java/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@
<fileset id="lsp4j.files" dir="mode">
<include name="org.eclipse.lsp4j.jar" />
<include name="org.eclipse.lsp4j.jsonrpc.jar" />
<include name="gson.jar" />
</fileset>

<condition property="lsp4j.present">
<resourcecount refid="lsp4j.files" when="eq" count="2" />
<resourcecount refid="lsp4j.files" when="eq" count="3" />
</condition>

<!-- ok to ignore failed downloads if we at least have a version that's local -->
Expand All @@ -79,6 +80,11 @@
dest="mode/org.eclipse.lsp4j.jsonrpc.jar"
ignoreerrors="${lsp4j.ignorable}"
usetimestamp="true" />

<get src="https://repo1.maven.org/maven2/com/google/code/gson/gson/2.9.1/gson-2.9.1.jar"
dest="mode/gson.jar"
ignoreerrors="${lsp4j.ignorable}"
usetimestamp="true" />
</target>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
Expand Down
1 change: 1 addition & 0 deletions java/mode/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
JavaMode.jar
org.eclipse.lsp4j.jar
org.eclipse.lsp4j.jsonrpc.jar
gson.jar

9 changes: 9 additions & 0 deletions java/processing4-java.iml
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,14 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="gson">
<CLASSES>
<root url="jar://$MODULE_DIR$/mode/gson.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>

0 comments on commit 9375c95

Please sign in to comment.