[7.x] Optimize which Rest resources are used by the Rest tests… (#53766)

This should help with Gradle's incremental compile such that projects
only depend upon the resources they use.

related #52114
This commit is contained in:
Jake Landis 2020-03-19 12:28:59 -05:00 committed by GitHub
parent 53f7e31462
commit db3420d757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 230 additions and 3 deletions

View file

@ -40,6 +40,12 @@ dependencies {
compile "com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}"
}
restResources {
restApi {
includeCore '_common', 'cluster', 'nodes'
}
}
dependencyLicenses {
mapping from: /aws-java-sdk-.*/, to: 'aws-java-sdk'
mapping from: /jackson-.*/, to: 'jackson'

View file

@ -32,6 +32,12 @@ dependencies {
testCompile project(path: ':plugins:discovery-ec2', configuration: 'runtime')
}
restResources {
restApi {
includeCore '_common', 'cluster', 'nodes'
}
}
final int ec2NumberOfNodes = 3
Map<String, Object> expansions = [