summaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-24 22:53:36 -0800
committerGeorge Fraser <george@fivetran.com>2019-03-31 10:49:44 -0700
commit31e0469b9ce63d39f8a732b32ae1afbc2e8e9d37 (patch)
tree4fb6a323f47710b33b1b50ca1f749d50e15e6995 /pom.xml
parentf00234f1bc0949e21527c189ce7ceb33438ec932 (diff)
downloadjava-language-server-31e0469b9ce63d39f8a732b32ae1afbc2e8e9d37.zip
Demo how to re-use compiler
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index b6aa940..509d8ee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,6 +7,7 @@
<artifactId>javac-services</artifactId>
<packaging>jar</packaging>
<version>0.1-SNAPSHOT</version>
+
<distributionManagement>
<repository>
<id>distribution-repository</id>
@@ -14,6 +15,7 @@
<url>file://${basedir}/dist</url>
</repository>
</distributionManagement>
+
<dependencies>
<!-- JSON support -->
<dependency>
@@ -58,6 +60,22 @@
<configuration>
<source>11</source>
<target>11</target>
+ <compilerArgs>
+ <arg>--add-exports</arg>
+ <arg>jdk.compiler/com.sun.tools.javac.api=javacs</arg>
+ <arg>--add-exports</arg>
+ <arg>jdk.compiler/com.sun.tools.javac.code=javacs</arg>
+ <arg>--add-exports</arg>
+ <arg>jdk.compiler/com.sun.tools.javac.comp=javacs</arg>
+ <arg>--add-exports</arg>
+ <arg>jdk.compiler/com.sun.tools.javac.main=javacs</arg>
+ <arg>--add-exports</arg>
+ <arg>jdk.compiler/com.sun.tools.javac.tree=javacs</arg>
+ <arg>--add-exports</arg>
+ <arg>jdk.compiler/com.sun.tools.javac.model=javacs</arg>
+ <arg>--add-exports</arg>
+ <arg>jdk.compiler/com.sun.tools.javac.util=javacs</arg>
+ </compilerArgs>
<!-- Workaround of https://issues.apache.org/jira/browse/MCOMPILER-369 -->
<annotationProcessorPaths>
<path>