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

Uses an outdated gradle version #8

Open
dagnelies opened this issue Oct 8, 2019 · 1 comment
Open

Uses an outdated gradle version #8

dagnelies opened this issue Oct 8, 2019 · 1 comment

Comments

@dagnelies
Copy link

Following warning pops up during the build:

Support for builds using Gradle older than 2.6 was deprecated and will be removed in 5.0. You are currently using Gradle version 2.0. You should upgrade your Gradle build to use Gradle 2.6 or later.

@dagnelies
Copy link
Author

dagnelies commented Oct 21, 2019

Gradle 2.0 is now problematic because such old version are poorly (if at all) supported by most IDEs. We are now at gradle 5+.

I tried simply upgrading the gradle wrapper dependency, but this lead to other issues down the pipeline. When starting a flow in elastic.io, it leads to:

Starting your Docker container ...
Starting application in apprunner...
[INFO  tini (1)] Spawned child process '/run.sh' with pid '8'
Starting slug download ...
Successfully downloaded and extracted slug file
INFO  i.e.s.Service T: - Starting execution of verifyCredentials
INFO  i.e.s.ComponentDescriptorResolver T: - Component descriptor from classpath: /component.json
Exception in thread "main" com.google.inject.ProvisionException: Unable to provision, see the following errors:
(no message)
1) Error injecting constructor, java.lang.IllegalStateException: Component descriptor /component.json is not found in the classpath
(no message)
at io.elastic.sailor.Service.createServiceInstanceAndExecute(Service.java:73)
Caused by: java.lang.IllegalStateException: Component descriptor /component.json is not found in the classpath
at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant