8000 Remove test dependencies from binary release artifact · coder-xing/flume@511d868 · GitHub
[go: up one dir, main page]

Skip to content

Commit 511d868

Browse files
committed
Remove test dependencies from binary release artifact
This patch removes some test-specific dependencies from the binary release artifact. These were introduced by the new flume-shared-kafka-test module that is intended for sharing test code. Please see the new comment in bin.xml for more information. Reviewers: Bessenyei Balázs Donát Closes apache#70
1 parent a1b55d2 commit 511d868

File tree

1 file changed

+7
-2
lines changed
  • flume-ng-dist/src/main/assembly

1 file changed

+7
-2
lines changed

flume-ng-dist/src/main/assembly/bin.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
<useProjectArtifact>false</useProjectArtifact>
3939
<excludes>
4040
<exclude>org.apache.flume.flume-ng-clients:flume-ng-log4jappender:jar:jar-with-dependencies</exclude>
41+
<!-- The below test classes get pulled in by flume-shared-kafka-test,
42+
but we don't want them in the final release classpath. Maybe there
43+
is a better way to exclude all of the dependencies of that module;
44+
for now, specifically exclude these test deps. -->
45+
<exclude>junit:junit</exclude>
46+
<exclude>org.hamcrest:hamcrest-core</exclude>
4147
</excludes>
4248
</dependencySet>
4349
<dependencySet>
@@ -50,8 +56,7 @@
5056
</dependencySet>
5157
</dependencySets>
5258

53-
54-
<fileSets>
59+
<fileSets>
5560
<fileSet>
5661
<directory>../</directory>
5762

0 commit comments

Comments
 (0)
0