diff --git a/.mvn/jvm.config b/.mvn/jvm.config deleted file mode 100644 index faf08556636..00000000000 --- a/.mvn/jvm.config +++ /dev/null @@ -1,5 +0,0 @@ ---add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED ---add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED ---add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED ---add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED ---add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 06cde403bee..8a5fff2dcb6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,6 +21,20 @@ the `dev` profile in your Maven command to use those artifacts instead of buildi Modifying the native op generation code (not the annotation processor) or the JavaCPP configuration (not the abstract Pointers) will require a complete build could be required to reflect the changes, otherwise `-Pdev` should be fine. +## JDK 16+ + +If you're using JDK 16+, you need to add some exports for the formatter plugin: + +``` +--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED +--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED +``` + +This can be done in `.mvn/jvm.config` or `MAVEN_OPTS`. + ### Native Builds In some cases, like when adding GPU support or re-generating op classes, you will need to re-build the native library. 99% of this is building diff --git a/pom.xml b/pom.xml index f9272d26421..76504524ae9 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,7 @@ true true true - 2.10.3 + 2.11.1 @@ -229,6 +229,33 @@ + + + format + + (,16) + + + + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + + + spotless-check + initialize + + check + + + + + + + @@ -305,6 +332,7 @@ spotless-maven-plugin ${spotless.version} + origin/master @@ -318,17 +346,6 @@ - - - - - spotless-check - initialize - - check - - -