File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
test/fixtures/hdfs-fixture Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ tasks.named("shadowJar").configure {
148
148
relocate(" org.apache.hadoop" , " fixture.hdfs3.org.apache.hadoop" ) {
149
149
exclude " org.apache.hadoop.hdfs.protocol.ClientProtocol"
150
150
exclude " org.apache.hadoop.ipc.StandbyException"
151
+ exclude " org.apache.hadoop.application-classloader.properties"
151
152
}
152
153
configurations. add(project. configurations. hdfs3)
153
154
}
@@ -156,6 +157,7 @@ def hdfs2Jar = tasks.register("hdfs2jar", ShadowJar) {
156
157
relocate(" org.apache.hadoop" , " fixture.hdfs2.org.apache.hadoop" ) {
157
158
exclude " org.apache.hadoop.hdfs.protocol.ClientProtocol"
158
159
exclude " org.apache.hadoop.ipc.StandbyException"
160
+ exclude " org.apache.hadoop.application-classloader.properties"
159
161
}
160
162
archiveClassifier. set(" hdfs2" )
161
163
from sourceSets. main. output
@@ -173,6 +175,10 @@ tasks.withType(ShadowJar).configureEach {
173
175
exclude(dependency(' com.fasterxml.jackson.core:.*:.*' ))
174
176
}
175
177
178
+ filesMatching(" META-INF/services/**" ) {
179
+ duplicatesStrategy = DuplicatesStrategy . INCLUDE // Or something else.
180
+ }
181
+
176
182
transform(org.elasticsearch.gradle.internal.shadow.XmlClassRelocationTransformer . class) {
177
183
resource = " core-default.xml"
178
184
enabled = true
You can’t perform that action at this time.
0 commit comments