diff --git a/.mvn/jvm.config b/.mvn/jvm.config new file mode 100644 index 00000000000..faf08556636 --- /dev/null +++ b/.mvn/jvm.config @@ -0,0 +1,5 @@ +--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/license-header b/license-header new file mode 100644 index 00000000000..12bf9309e9a --- /dev/null +++ b/license-header @@ -0,0 +1,14 @@ +/* + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ======================================================================= + */ \ No newline at end of file diff --git a/pom.xml b/pom.xml index 6260e1f58c3..d09728c4c4c 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,5 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 @@ -45,6 +45,7 @@ true true true + 2.10.3 @@ -103,19 +104,19 @@ junit-jupiter-engine ${junit.version} test - - - org.openjdk.jmh - jmh-core - ${jmh.version} - test - - - org.openjdk.jmh - jmh-generator-annprocess - ${jmh.version} + + + org.openjdk.jmh + jmh-core + ${jmh.version} + test + + + org.openjdk.jmh + jmh-generator-annprocess + ${jmh.version} test - + @@ -300,6 +301,36 @@ true + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + origin/master + + + + + + + + + ./license-header + + + + + + + + spotless-check + initialize + + check + + + + diff --git a/tensorflow-core/tensorflow-core-generator/pom.xml b/tensorflow-core/tensorflow-core-generator/pom.xml index 2c9cca5f924..25608fe7e24 100644 --- a/tensorflow-core/tensorflow-core-generator/pom.xml +++ b/tensorflow-core/tensorflow-core-generator/pom.xml @@ -59,6 +59,18 @@ + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + + src/main/java/org/tensorflow/proto/framework/** + + + +