Skip to content

Commit

Permalink
Resolve more Gradle task validation warnings (#47825)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Oct 9, 2019
1 parent f749bac commit 82e3d5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import groovy.transform.PackageScope
import org.elasticsearch.gradle.doc.SnippetsTask.Snippet
import org.gradle.api.InvalidUserDataException
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.OutputDirectory

import java.nio.file.Files
Expand Down Expand Up @@ -58,6 +59,7 @@ class RestTestsFromSnippetsTask extends SnippetsTask {
@OutputDirectory
File testRoot = project.file('build/rest')

@Internal
Set<String> names = new HashSet<>()

RestTestsFromSnippetsTask() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public void setNumberOfNodes(int numberOfNodes) {
}
}

@Internal
ElasticsearchNode getFirstNode() {
return nodes.getAt(clusterName + "-0");
}
Expand Down

0 comments on commit 82e3d5e

Please sign in to comment.