Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
remove temporary fix in gradle build (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongnansu authored Apr 13, 2020
1 parent 2bfe326 commit 8e8f70d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
17 changes: 1 addition & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@
*/

buildscript {

ext {
// When upgrading to version after 7.3.0, must remove also
// project substitution from configurations.all (line 39)
es_version = System.getProperty("es.version", "7.6.1")
es_version = "7.6.1"
}
// This isn't applying from repositories.gradle so repeating it here
repositories {
Expand All @@ -37,18 +34,6 @@ plugins {
id "io.freefair.lombok" version "5.0.0-rc4"
}

/*
Temporary fix, must be removed after 7.3.0 See
https://github.com/elastic/elasticsearch/issues/45073
Also must remove include ':rest-api-spec' from settings.gradle
*/
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute project(':rest-api-spec') with module ("org.elasticsearch:rest-api-spec:${es_version}")
}
}

// Repository on root level is for dependencies that project code depends on. And this block must be placed after plugins{}
repositories {
mavenCentral() // For Elastic Libs that you can use to get started coding until open ES libs are available
Expand Down
5 changes: 1 addition & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@
* permissions and limitations under the License.
*/

rootProject.name = 'opendistro-sql'


include ':rest-api-spec'
rootProject.name = 'opendistro-sql'

0 comments on commit 8e8f70d

Please sign in to comment.