|
7 | 7 | * License v3.0 only", or the "Server Side Public License, v 1". |
8 | 8 | */ |
9 | 9 |
|
10 | | -import org.elasticsearch.gradle.internal.test.RestIntegTestTask |
| 10 | + |
11 | 11 | import org.elasticsearch.gradle.OS |
| 12 | +import org.elasticsearch.gradle.internal.test.RestIntegTestTask |
12 | 13 |
|
13 | 14 | apply plugin: 'elasticsearch.internal-java-rest-test' |
14 | 15 | apply plugin: 'elasticsearch.internal-yaml-rest-test' |
15 | 16 |
|
16 | 17 | esplugin { |
17 | 18 | description = 'The HDFS repository plugin adds support for Hadoop Distributed File-System (HDFS) repositories.' |
18 | | - classname ='org.elasticsearch.repositories.hdfs.HdfsPlugin' |
| 19 | + classname = 'org.elasticsearch.repositories.hdfs.HdfsPlugin' |
19 | 20 | } |
20 | 21 |
|
21 | 22 | versions << [ |
22 | 23 | 'hadoop': '3.4.1' |
23 | 24 | ] |
24 | 25 |
|
25 | 26 | def patched = Attribute.of('patched', Boolean) |
| 27 | +def hdfsVersionAttr = Attribute.of('hdfs.major.version', Integer) |
26 | 28 |
|
27 | 29 | configurations { |
28 | | - hdfsFixture2 |
29 | | - hdfsFixture3 |
| 30 | + hdfsFixture2 { |
| 31 | + attributes { |
| 32 | + attribute(hdfsVersionAttr, 2) |
| 33 | + } |
| 34 | + } |
| 35 | + hdfsFixture3 { |
| 36 | + attributes { |
| 37 | + attribute(hdfsVersionAttr, 3) |
| 38 | + } |
| 39 | + } |
30 | 40 | compileClasspath { |
31 | 41 | attributes { |
32 | 42 | attribute(patched, true) |
@@ -82,8 +92,8 @@ dependencies { |
82 | 92 | yamlRestTestRuntimeOnly "commons-cli:commons-cli:1.5.0" |
83 | 93 | yamlRestTestRuntimeOnly "org.apache.logging.log4j:log4j-1.2-api:${versions.log4j}" |
84 | 94 |
|
85 | | - hdfsFixture2 project(path: ':test:fixtures:hdfs-fixture', configuration: 'shadowedHdfs2') |
86 | | - hdfsFixture3 project(path: ':test:fixtures:hdfs-fixture', configuration: 'shadow') |
| 95 | + hdfsFixture2 project(':test:fixtures:hdfs-fixture') |
| 96 | + hdfsFixture3 project(':test:fixtures:hdfs-fixture') |
87 | 97 |
|
88 | 98 | attributesSchema { |
89 | 99 | attribute(patched) |
|
0 commit comments