HADOOP-18398. Prevent AvroRecord*.class from being included non-test jar (#4727)

Contributed by Yubi Lee.
This commit is contained in:
Yubi Lee 2022-08-12 04:12:41 +09:00 committed by Steve Loughran
parent 0455769531
commit a0e2ab2974
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 2 additions and 2 deletions

View File

@ -1115,7 +1115,7 @@
<id>src-test-compile-protoc-legacy</id> <id>src-test-compile-protoc-legacy</id>
<phase>generate-test-sources</phase> <phase>generate-test-sources</phase>
<goals> <goals>
<goal>compile</goal> <goal>test-compile</goal>
</goals> </goals>
<configuration> <configuration>
<skip>false</skip> <skip>false</skip>
@ -1124,7 +1124,7 @@
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact> </protocArtifact>
<includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet> <includeDependenciesInDescriptorSet>false</includeDependenciesInDescriptorSet>
<protoSourceRoot>${basedir}/src/test/proto</protoSourceRoot> <protoTestSourceRoot>${basedir}/src/test/proto</protoTestSourceRoot>
<outputDirectory>${project.build.directory}/generated-test-sources/java</outputDirectory> <outputDirectory>${project.build.directory}/generated-test-sources/java</outputDirectory>
<clearOutputDirectory>false</clearOutputDirectory> <clearOutputDirectory>false</clearOutputDirectory>
<includes> <includes>