Skip to content

Commit

Permalink
Testclusters: implement starting, waiting for and stopping single clu…
Browse files Browse the repository at this point in the history
…ster nodes (#35599)
  • Loading branch information
alpar-t authored Dec 4, 2018
1 parent 579be91 commit d036e0c
Show file tree
Hide file tree
Showing 14 changed files with 531 additions and 43 deletions.
4 changes: 4 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ if (project != rootProject) {
apply plugin: 'nebula.maven-base-publish'
apply plugin: 'nebula.maven-scm'

// we need to apply these again to override the build plugin
targetCompatibility = "10"
sourceCompatibility = "10"

// groovydoc succeeds, but has some weird internal exception...
groovydoc.enabled = false

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class PrecommitTasks {
private static Task configureNamingConventions(Project project) {
if (project.sourceSets.findByName("test")) {
Task namingConventionsTask = project.tasks.create('namingConventions', NamingConventionsTask)
namingConventionsTask.javaHome = project.runtimeJavaHome
namingConventionsTask.javaHome = project.compilerJavaHome
return namingConventionsTask
}
return null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*/
public class GradleServicesAdapter {

public final Project project;
private final Project project;

public GradleServicesAdapter(Project project) {
this.project = project;
Expand Down
14 changes: 10 additions & 4 deletions buildSrc/src/main/java/org/elasticsearch/gradle/Distribution.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,23 @@

public enum Distribution {

INTEG_TEST("integ-test"),
ZIP("elasticsearch"),
ZIP_OSS("elasticsearch-oss");
INTEG_TEST("integ-test", "zip"),
ZIP("elasticsearch", "zip"),
ZIP_OSS("elasticsearch-oss", "zip");

private final String fileName;
private final String fileExtension;

Distribution(String name) {
Distribution(String name, String fileExtension) {
this.fileName = name;
this.fileExtension = fileExtension;
}

public String getFileName() {
return fileName;
}

public String getFileExtension() {
return fileExtension;
}
}
Loading

0 comments on commit d036e0c

Please sign in to comment.