Skip to content

Commit

Permalink
Fix failed dependency resolution with external build-tools users (#45107
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mark-vieira authored Aug 5, 2019
1 parent 277033a commit 86c4a69
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
*/
package org.elasticsearch.gradle.test


import org.elasticsearch.gradle.VersionProperties
import org.elasticsearch.gradle.testclusters.ElasticsearchCluster
import org.elasticsearch.gradle.testclusters.TestClustersPlugin
import org.elasticsearch.gradle.tool.ClasspathUtils
import org.gradle.api.DefaultTask
import org.gradle.api.Task
import org.gradle.api.execution.TaskExecutionAdapter
Expand Down Expand Up @@ -244,7 +245,8 @@ class RestIntegTestTask extends DefaultTask {
restSpec
}
project.dependencies {
restSpec project.project(':rest-api-spec')
restSpec ClasspathUtils.isElasticsearchProject() ? project.project(':rest-api-spec') :
"org.elasticsearch.rest-api-spec:${VersionProperties.elasticsearch}"
}
Task copyRestSpec = project.tasks.findByName('copyRestSpec')
if (copyRestSpec != null) {
Expand Down

0 comments on commit 86c4a69

Please sign in to comment.