Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit 886b654

Browse files
committed
Remove code that is part of the plugin class now
1 parent 5eb8e9a commit 886b654

File tree

2 files changed

+8
-42
lines changed

2 files changed

+8
-42
lines changed

build.gradle

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import java.nio.file.Files
22
import org.elasticsearch.gradle.testclusters.StandaloneRestIntegTestTask
3+
import org.elasticsearch.gradle.test.SystemPropertyCommandLineArgumentProvider;
34
import org.gradle.api.tasks.Input;
45
import org.gradle.process.CommandLineArgumentProvider;
56

@@ -52,14 +53,6 @@ configurations {
5253
}
5354
}
5455

55-
// In this section you declare the dependencies for your production and test code
56-
dependencies {
57-
implementation 'com.youcruit.com.cybozu.labs:langdetect:1.1.2-20151117'
58-
implementation 'net.arnx:jsonic:1.3.10'
59-
// the yaml tests require a log4j2 dependency, otherwise a dependency is thrown on startup
60-
runtimeOnly 'org.apache.logging.log4j:log4j-core:2.11.1'
61-
}
62-
6356
// ignore javadoc warnings for now
6457
tasks.withType(Javadoc) {
6558
options.addStringOption('Xdoclint:none', '-quiet')
@@ -89,7 +82,6 @@ githubRelease.doFirst {
8982
}
9083
}
9184

92-
9385
// setup yaml rest tests
9486
testClusters {
9587
yamlRestTest
@@ -139,38 +131,12 @@ tasks.register('yamlRestTest', StandaloneRestIntegTestTask) { testTask ->
139131
check.dependsOn 'yamlRestTest'
140132

141133
dependencies {
142-
yamlRestTestImplementation "org.elasticsearch.test:framework:$elasticsearchVersion"
134+
implementation 'com.youcruit.com.cybozu.labs:langdetect:1.1.2-20151117'
135+
implementation 'net.arnx:jsonic:1.3.10'
136+
// the yaml tests require a log4j2 dependency, otherwise a dependency is thrown on startup
137+
runtimeOnly 'org.apache.logging.log4j:log4j-core:2.11.1'
138+
testImplementation "org.elasticsearch.test:framework:$elasticsearchVersion"
143139
restTestSpecs "org.elasticsearch:rest-api-spec:$elasticsearchVersion"
144140
}
145141

146-
// This will be available in 7.15 in build tools and not manually declared.
147-
public class SystemPropertyCommandLineArgumentProvider implements CommandLineArgumentProvider {
148-
private final Map<String, Object> systemProperties = new LinkedHashMap<>();
149-
150-
public void systemProperty(String key, Supplier<String> value) {
151-
systemProperties.put(key, value);
152-
}
153-
154-
public void systemProperty(String key, Object value) {
155-
systemProperties.put(key, value);
156-
}
157-
158-
@Override
159-
public Iterable<String> asArguments() {
160-
return systemProperties.entrySet()
161-
.stream()
162-
.map(
163-
entry -> "-D"
164-
+ entry.getKey()
165-
+ "="
166-
+ (entry.getValue() instanceof Supplier ? ((Supplier) entry.getValue()).get() : entry.getValue())
167-
)
168-
.collect(Collectors.toList());
169-
}
170-
171-
// Track system property keys as an input so our build cache key will change if we add properties but values are still ignored
172-
@Input
173-
public Iterable<String> getPropertyNames() {
174-
return systemProperties.keySet();
175-
}
176-
}
142+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)