Skip to content

Commit 8f9d878

Browse files
committed
add full test dependencies
Signed-off-by: Ryan Nett <[email protected]>
1 parent 892eb55 commit 8f9d878

File tree

1 file changed

+18
-9
lines changed
  • tensorflow-core-kotlin/tensorflow-core-kotlin-api

1 file changed

+18
-9
lines changed

tensorflow-core-kotlin/tensorflow-core-kotlin-api/pom.xml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<properties>
3434
<!-- Match version used by TensorFlow, in tensorflow/workspace.bzl -->
3535
<protobuf.version>3.8.0</protobuf.version>
36+
<javacpp.platform.extension></javacpp.platform.extension>
3637
</properties>
3738

3839
<dependencies>
@@ -51,6 +52,23 @@
5152
<artifactId>junit-jupiter-engine</artifactId>
5253
<scope>test</scope>
5354
</dependency>
55+
<dependency>
56+
<groupId>org.openjdk.jmh</groupId>
57+
<artifactId>jmh-core</artifactId>
58+
<scope>test</scope>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.openjdk.jmh</groupId>
62+
<artifactId>jmh-generator-annprocess</artifactId>
63+
<scope>test</scope>
64+
</dependency>
65+
<!-- Include native binaries dependencies only for testing -->
66+
<dependency>
67+
<groupId>org.tensorflow</groupId>
68+
<artifactId>tensorflow-core-platform${javacpp.platform.extension}</artifactId>
69+
<version>${project.version}</version>
70+
<scope>test</scope>
71+
</dependency>
5472
</dependencies>
5573

5674
<profiles>
@@ -446,15 +464,6 @@
446464
</goals>
447465
</execution>
448466
</executions>
449-
<configuration>
450-
<additionalClasspathElements>
451-
<additionalClasspathElement>${project.build.directory}/${project.artifactId}-${project.version}-${native.classifier}.jar
452-
</additionalClasspathElement>
453-
<!-- Note: the following path is not accessible in deploying profile, so other libraries like
454-
OpenMP must be installed manually when running the tests -->
455-
<additionalClasspathElement>${project.build.directory}/native/</additionalClasspathElement>
456-
</additionalClasspathElements>
457-
</configuration>
458467
</plugin>
459468
<!-- <plugin>-->
460469
<!-- <artifactId>maven-source-plugin</artifactId>-->

0 commit comments

Comments
 (0)