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

Plugins: Running ./gradlew run in external plugins fails #32807

Closed
spinscale opened this issue Aug 13, 2018 · 3 comments
Closed

Plugins: Running ./gradlew run in external plugins fails #32807

spinscale opened this issue Aug 13, 2018 · 3 comments
Labels
>bug :Core/Infra/Plugins Plugin API and infrastructure

Comments

@spinscale
Copy link
Contributor

spinscale commented Aug 13, 2018

Elasticsearch version (bin/elasticsearch --version): 6.3.2 (all of 6.3 is affected), works in 6.2 and below

When trying to call ./gradlew run in an external plugin, the following exceptions pops up

./gradlew run
Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :
=======================================
Elasticsearch Build Hamster says Hello!
=======================================
  Gradle Version        : 4.7
  OS Info               : Mac OS X 10.13.6 (x86_64)
  JDK Version           : Oracle Corporation 10.0.1 [Java HotSpot(TM) 64-Bit Server VM 10.0.1+10]
  JAVA_HOME             : /Users/alr/.sdkman/candidates/java/10.0.1-oracle
  Random Testing Seed   : CDFB648806AD1486

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':run#extract'.
> Could not resolve all files for configuration ':run_elasticsearchDistro'.
   > Could not find org.elasticsearch.distribution.zip:elasticsearch:6.3.2.
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/org/elasticsearch/distribution/zip/elasticsearch/6.3.2/elasticsearch-6.3.2.pom
         https://repo.maven.apache.org/maven2/org/elasticsearch/distribution/zip/elasticsearch/6.3.2/elasticsearch-6.3.2.zip
     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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.7/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 10s

It seems that the correct artifact would be the elasticsearch-oss distribution at https://repo.maven.apache.org/maven2/org/elasticsearch/distribution/zip/elasticsearch-oss/6.3.2/elasticsearch-oss-6.3.2.zip

If you want to reproduce you can run

# this will create an ingest plugin skeleton in the ingest-awesome directory
cookiecutter --no-input gh:spinscale/cookiecutter-elasticsearch-ingest-processor
cd ingest-awesome
./gradlew run
@spinscale spinscale added >bug :Core/Infra/Plugins Plugin API and infrastructure labels Aug 13, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@rjernst
Copy link
Member

rjernst commented Aug 13, 2018

I think this has already been addressed by #32549?

@spinscale
Copy link
Contributor Author

indeed, fixed in 6.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Plugins Plugin API and infrastructure
Projects
None yet
Development

No branches or pull requests

3 participants