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 {
148148  relocate(" org.apache.hadoop"  , " fixture.hdfs3.org.apache.hadoop"  ) {
149149    exclude " org.apache.hadoop.hdfs.protocol.ClientProtocol" 
150150    exclude " org.apache.hadoop.ipc.StandbyException" 
151+     exclude " org.apache.hadoop.application-classloader.properties" 
151152  }
152153  configurations. add(project. configurations. hdfs3)
153154}
@@ -156,6 +157,7 @@ def hdfs2Jar = tasks.register("hdfs2jar", ShadowJar) {
156157  relocate(" org.apache.hadoop"  , " fixture.hdfs2.org.apache.hadoop"  ) {
157158    exclude " org.apache.hadoop.hdfs.protocol.ClientProtocol" 
158159    exclude " org.apache.hadoop.ipc.StandbyException" 
160+     exclude " org.apache.hadoop.application-classloader.properties" 
159161  }
160162  archiveClassifier. set(" hdfs2"  )
161163  from sourceSets. main. output
@@ -173,6 +175,10 @@ tasks.withType(ShadowJar).configureEach {
173175    exclude(dependency(' com.fasterxml.jackson.core:.*:.*'  ))
174176  }
175177
178+   filesMatching(" META-INF/services/**"  ) {
179+     duplicatesStrategy =  DuplicatesStrategy . INCLUDE  //  Or something else.
180+   }
181+ 
176182  transform(org.elasticsearch.gradle.internal.shadow.XmlClassRelocationTransformer . class) {
177183    resource =  " core-default.xml" 
178184    enabled =  true 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments