diff --git a/tensorflow-core/pom.xml b/tensorflow-core/pom.xml index d36b91776c0..8df07468325 100644 --- a/tensorflow-core/pom.xml +++ b/tensorflow-core/pom.xml @@ -31,6 +31,7 @@ Parent POM of TensorFlow core artifacts + tensorflow-core-api-java9 tensorflow-core-generator tensorflow-core-api diff --git a/tensorflow-core/tensorflow-core-api-java9/pom.xml b/tensorflow-core/tensorflow-core-api-java9/pom.xml new file mode 100644 index 00000000000..9e1c0ebb506 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api-java9/pom.xml @@ -0,0 +1,31 @@ + + + 4.0.0 + + org.tensorflow + tensorflow-core + 0.4.0-SNAPSHOT + + tensorflow-core-api-java9 + jar + + TensorFlow Core Java 9 API Classes + Java 9 classes for the Tensorflow Core API + + + org.tensorflow.core.api.java9 + 9 + 9 + 9 + true + + + + + + + + + + diff --git a/tensorflow-core/tensorflow-core-api-java9/src/main/java/org/tensorflow/MRTest.java b/tensorflow-core/tensorflow-core-api-java9/src/main/java/org/tensorflow/MRTest.java new file mode 100644 index 00000000000..649e3666fae --- /dev/null +++ b/tensorflow-core/tensorflow-core-api-java9/src/main/java/org/tensorflow/MRTest.java @@ -0,0 +1,24 @@ +/* + Copyright 2021 The TensorFlow Authors. All Rights Reserved. + +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. +======================================================================= + +*/ +package org.tensorflow; + +public class MRTest { + public static int version() { + return 9; + } +} diff --git a/tensorflow-core/tensorflow-core-api/pom.xml b/tensorflow-core/tensorflow-core-api/pom.xml index 4ebe1234e80..e0f02382998 100644 --- a/tensorflow-core/tensorflow-core-api/pom.xml +++ b/tensorflow-core/tensorflow-core-api/pom.xml @@ -15,6 +15,7 @@ Platform-dependent native code and pure-Java code for the TensorFlow machine intelligence library. + false false ${native.build.skip} ${native.build.skip} @@ -475,12 +476,35 @@ maven-assembly-plugin - 3.2.0 + 3.3.0 - - jar-with-dependencies - + false + + src/assembly/mrjar.xml + + + + true + + + merge + + + org.codehaus.plexus + plexus-archiver + 3.0.3 + + + + + make-assembly + package + + single + + + diff --git a/tensorflow-core/tensorflow-core-api/src/assembly/mrjar.xml b/tensorflow-core/tensorflow-core-api/src/assembly/mrjar.xml new file mode 100644 index 00000000000..64da5ca81a3 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/assembly/mrjar.xml @@ -0,0 +1,54 @@ + + + + mvjar + + jar + + false + + + true + + org.tensorflow:tensorflow-core-api + + + true + false + + + + true + + org.tensorflow:tensorflow-core-api-java9 + + + META-INF/versions/9 + true + false + + + /META-INF/** + + + + + + \ No newline at end of file diff --git a/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/MRTest.java b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/MRTest.java new file mode 100644 index 00000000000..8d9ea407292 --- /dev/null +++ b/tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/MRTest.java @@ -0,0 +1,24 @@ +/* + Copyright 2021 The TensorFlow Authors. All Rights Reserved. + +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. +======================================================================= + +*/ +package org.tensorflow; + +public class MRTest { + public static int version() { + return 8; + } +}