@@ -22,35 +22,20 @@ versions << [
2222 ' hadoop' : ' 3.4.1'
2323]
2424
25- def patched = Attribute . of(' patched' , Boolean )
26-
2725configurations {
2826 hdfsFixture2
2927 hdfsFixture3
30- compileClasspath {
31- attributes {
32- attribute(patched, true )
33- }
34- }
35- runtimeClasspath {
36- attributes {
37- attribute(patched, true )
38- }
39- }
40- testCompileClasspath {
41- attributes {
42- attribute(patched, true )
43- }
44- }
45- testRuntimeClasspath {
46- attributes {
47- attribute(patched, true )
48- }
49- }
5028}
5129
5230dependencies {
53- api(" org.apache.hadoop:hadoop-client-api:${ versions.hadoop} " )
31+ api project(path : ' hadoop-client-api' , configuration : ' default' )
32+ if (isEclipse) {
33+ /*
34+ * Eclipse can't pick up the shadow dependency so we point it at *something*
35+ * so it can compile things.
36+ */
37+ api project(path : ' hadoop-client-api' )
38+ }
5439 runtimeOnly " org.apache.hadoop:hadoop-client-runtime:${ versions.hadoop} "
5540 implementation " org.apache.hadoop:hadoop-hdfs:${ versions.hadoop} "
5641 api " com.google.protobuf:protobuf-java:${ versions.protobuf} "
@@ -84,20 +69,6 @@ dependencies {
8469
8570 hdfsFixture2 project(path : ' :test:fixtures:hdfs-fixture' , configuration : ' shadowedHdfs2' )
8671 hdfsFixture3 project(path : ' :test:fixtures:hdfs-fixture' , configuration : ' shadow' )
87-
88- attributesSchema {
89- attribute(patched)
90- }
91- artifactTypes. getByName(" jar" ) {
92- attributes. attribute(patched, false )
93- }
94- registerTransform(org.elasticsearch.gradle.internal.dependencies.patches.hdfs.HdfsClassPatcher ) {
95- from. attribute(patched, false )
96- to. attribute(patched, true )
97- parameters {
98- matchingArtifacts = [" hadoop-client-api" ]
99- }
100- }
10172}
10273
10374restResources {
@@ -219,15 +190,6 @@ tasks.named("thirdPartyAudit").configure {
219190 ' org.apache.hadoop.thirdparty.protobuf.UnsafeUtil$MemoryAccessor' ,
220191 ' org.apache.hadoop.thirdparty.protobuf.MessageSchema' ,
221192 ' org.apache.hadoop.thirdparty.protobuf.UnsafeUtil$Android32MemoryAccessor' ,
222- ' org.apache.hadoop.thirdparty.protobuf.UnsafeUtil$Android64MemoryAccessor' ,
223- ' org.apache.hadoop.thirdparty.protobuf.UnsafeUtil$Android64MemoryAccessor' ,
224- ' org.apache.hadoop.hdfs.shortcircuit.ShortCircuitShm' ,
225- ' org.apache.hadoop.hdfs.shortcircuit.ShortCircuitShm$Slot' ,
226- ' org.apache.hadoop.io.FastByteComparisons$LexicographicalComparerHolder$UnsafeComparer' ,
227- ' org.apache.hadoop.io.FastByteComparisons$LexicographicalComparerHolder$UnsafeComparer$1' ,
228- ' org.apache.hadoop.io.nativeio.NativeIO' ,
229- ' org.apache.hadoop.service.launcher.InterruptEscalator' ,
230- ' org.apache.hadoop.service.launcher.IrqHandler' ,
231- ' org.apache.hadoop.util.SignalLogger$Handler'
193+ ' org.apache.hadoop.thirdparty.protobuf.UnsafeUtil$Android64MemoryAccessor'
232194 )
233195}
0 commit comments