Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Build fails with missing dependency build-tools #154

Closed
faxm0dem opened this issue Jul 6, 2021 · 6 comments
Closed

[BUG] Build fails with missing dependency build-tools #154

faxm0dem opened this issue Jul 6, 2021 · 6 comments
Labels
infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. question Further information is requested

Comments

@faxm0dem
Copy link

faxm0dem commented Jul 6, 2021

☠ ./gradlew build

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'opensearch-sql'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.opensearch.gradle:build-tools:1.0.0-rc1.
     Searched in the following locations:
       - file:/home/me/.m2/repository/org/opensearch/gradle/build-tools/1.0.0-rc1/build-tools-1.0.0-rc1.pom
       - https://repo.maven.apache.org/maven2/org/opensearch/gradle/build-tools/1.0.0-rc1/build-tools-1.0.0-rc1.pom
       - https://jcenter.bintray.com/org/opensearch/gradle/build-tools/1.0.0-rc1/build-tools-1.0.0-rc1.pom
       - https://plugins.gradle.org/m2/org/opensearch/gradle/build-tools/1.0.0-rc1/build-tools-1.0.0-rc1.pom
     Required by:
         project :
@faxm0dem faxm0dem added Beta bug Something isn't working untriaged labels Jul 6, 2021
@chloe-zh chloe-zh added question Further information is requested and removed Beta untriaged labels Jul 14, 2021
@chloe-zh
Copy link
Contributor

Hi @faxm0dem the build failure is because the opensearch dependencies (v1.0.0-rc) were not available in the maven repository yet since the GA was not officially released until this Monday. The good thing is we just released v1.0.0.0. Please checkout the latest source code and try to build against v1.0.0.0, this should work fine.

@faxm0dem
Copy link
Author

faxm0dem commented Jul 15, 2021

Thanks. I tried, but I still get the same error. I see there are many tags that resemble 1.0.0.0 maybe I checked out the wrong one ?

tag 1.0.0.0

> git status
HEAD detached at 1.0.0.0
nothing to commit, working tree clean
> ./gradlew build

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'opensearch-sql'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.opensearch.gradle:build-tools:1.0.0.
     Searched in the following locations:
       - file:/home/me/.m2/repository/org/opensearch/gradle/build-tools/1.0.0/build-tools-1.0.0.pom
       - https://repo.maven.apache.org/maven2/org/opensearch/gradle/build-tools/1.0.0/build-tools-1.0.0.pom
       - https://jcenter.bintray.com/org/opensearch/gradle/build-tools/1.0.0/build-tools-1.0.0.pom
       - https://plugins.gradle.org/m2/org/opensearch/gradle/build-tools/1.0.0/build-tools-1.0.0.pom
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

tag v1.0.0.0

> git status
HEAD detached at v1.0.0.0
nothing to commit, working tree clean
> ./gradlew build

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/tmp/sql/build.gradle' line: 55

* What went wrong:
A problem occurred evaluating root project 'opendistro-sql'.
> Failed to apply plugin [id 'elasticsearch.esplugin']
   > JAVA_HOME must be set to build Elasticsearch. Note that if the variable was just set you might have to run `./gradlew --stop` for it to be picked up. See https://github.com/elastic/elasticsearch/issues/31399 details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring root project 'opendistro-sql'.
> Must specify license and notice file for project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

@hashworks
Copy link

@chloe-zh This is still an issue with all plugins. Do you plan to release org.opensearch.gradle:build-tools in Maven Central? If not, how would one provide it in a local repository?

@dblock
Copy link
Member

dblock commented Aug 23, 2021

@chloe-zh This is still an issue with all plugins. Do you plan to release org.opensearch.gradle:build-tools in Maven Central? If not, how would one provide it in a local repository?

Yes, opensearch-project/opensearch-build#20.

@dai-chen
Copy link
Collaborator

Closing this for now. Feel free to reopen if you need anything. Thanks!

@dai-chen dai-chen moved this to Done in SQL Engineering Dec 12, 2022
@dai-chen dai-chen added infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. and removed bug Something isn't working labels Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. question Further information is requested
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants