Closed foxundermoon closed 7 years ago
compileShaded files("${System.getProperty('java.home')}/../lib/tools.jar")
can resolve it
We publish two artifacts to Maven Central, one with and without the jdk shaded:
This one does NOT bundle the JDK and assumes you will be running your parser from a class launched from a JDK and not a JRE:
compile 'com.netflix.devinsight.rewrite:rewrite-core:0.18.4'
This shades and bundles the relevant parts of the JDK so you can run anywhere:
compile 'com.netflix.devinsight.rewrite:rewrite-core:0.18.4:jdkbundle'
i'am try to use but failure
when run to
new OracleJdkParser();
occur this errorCaused by: java.lang.ClassNotFoundException: com.sun.tools.javac.util.Context
os:
mac 10.12.4
java:jdk1.8.0.0_112
gradle:3.4.1