Skip to content

Commit

Permalink
Fix for broken Gradle build
Browse files Browse the repository at this point in the history
See elastic/elasticsearch#45073
This fix needs to be removed for ES 7.3.1 and later.
  • Loading branch information
lukas-vlcek committed Aug 13, 2019
1 parent 7fe5862 commit 8ffd829
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ configurations {
}
}

// Fix for https://github.com/elastic/elasticsearch/issues/45073
// TODO(lukas-vlcek): Should be removed for ES v7.3.1 and later.
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute project(':rest-api-spec') with module ("org.elasticsearch:rest-api-spec:${versions.elasticsearch}")
}
}

dependencies {
compile "org.elasticsearch:elasticsearch:${versions.elasticsearch}"
compile "io.prometheus:simpleclient:${versions.prometheus}"
Expand Down
4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
rootProject.name = "prometheus-exporter"

// Fix for https://github.com/elastic/elasticsearch/issues/45073
// TODO(lukas-vlcek): Should be removed for ES v7.3.1 and later.
include ':rest-api-spec'

0 comments on commit 8ffd829

Please sign in to comment.