Skip to content

Commit 86840e7

Browse files
authored
Exclude core-generator from the compilation classpath (#99)
1 parent e35bbd9 commit 86840e7

File tree

1 file changed

+7
-6
lines changed
  • tensorflow-core/tensorflow-core-api

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@
3737
<artifactId>protobuf-java</artifactId>
3838
<version>${protobuf.version}</version>
3939
</dependency>
40-
<dependency>
41-
<groupId>org.tensorflow</groupId>
42-
<artifactId>tensorflow-core-generator</artifactId>
43-
<version>${project.version}</version>
44-
<optional>true</optional> <!-- for compilation only -->
45-
</dependency>
4640
<dependency>
4741
<groupId>org.tensorflow</groupId>
4842
<artifactId>ndarray</artifactId>
@@ -144,6 +138,13 @@
144138
<annotationProcessors>
145139
<annotationProcessor>org.tensorflow.processor.operator.OperatorProcessor</annotationProcessor>
146140
</annotationProcessors>
141+
<annotationProcessorPaths>
142+
<annotationProcessorPath>
143+
<groupId>org.tensorflow</groupId>
144+
<artifactId>tensorflow-core-generator</artifactId>
145+
<version>${project.version}</version>
146+
</annotationProcessorPath>
147+
</annotationProcessorPaths>
147148
<!-- Important: Cannot be ${project.basedir}/src/gen/java or wherever the ops are -->
148149
<generatedSourcesDirectory>${project.basedir}/src/gen/annotations</generatedSourcesDirectory>
149150
</configuration>

0 commit comments

Comments
 (0)