-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Gradle 2.14 compatibility? #18935
Comments
Just confirmed this is not broken in gradle 2.13 |
I have the save question as you when building with gradle |
This is actually worse than just the class being moved. Apparently they considered the package org.gradle.logging to be "internal", and in 2.14 internal classes are finally not available to plugins (and this class move makes it truly internal). So until they add back ProgressLogger as part of the plugin API, all our nice logging would disappear... I'm going to add a check for now in BuildPlugin init that the gradle version is equal exactly to 2.13... |
Ah and of course this is hard to check for 2.13 because the failure happens inside buildSrc before we even get to check the gradle version... |
I opened #18955 as a stopgap so at least the error message is clear when trying to use 2.14 |
Due to gradle core developer Adrian Kelly there is no big chance that ProgressLogger will be available (again). So my suggestion is to adapt to Gradle 2.14 (including upcoming Gradle 3) as soon as possible by aligning the Elasticsearch build scripts/plugins to the reduced capabilities in https://docs.gradle.org/current/userguide/logging.html |
Any chance to reconsider #13744 due to this issue here? |
That is simply not true. I spoke with developers at gradle during Gradle Summit and they understand that progress logger is important. I expect it to come back, in some form, in the future:
The size is not the issue there. It is that we do not want binary blobs in our repo. I would be ok with a custom equivalent of the gradle wrapper that depended on java 8 and jjs to download the gradle binary, but I have not investigated the real feasibility of such a solution. In the meantime, you don't need to manage "a bunch" of versions, just two, 2.13 and whatever other version you are on. You can add your own gradle wrapper file then that just runs gradle 2.13 wherever it is on your system. I would even be ok with adding this to the gitignore so that you can update the repo without it looking like some outlier file. |
Aren't the zip files for bwc testing also binary files?
I'm probably being a bit too pessimistic here and exaggerating. |
I think it would be helpful to add the requirement for Gradle 2.13 to the docs for contribution and to make it more explicit that it is required in the main readme. Currently the readme says:
Which makes it sound like 2.13 or upwards is fine. There's no mention of version on the contribution doc. It's only a small issue and the error message makes it very clear what has gone wrong, but it could save the time of people like me, as I just downloaded the latest version of Gradle purely for the sake of contributing to the project. I'd be happy to make the change myself since I was after something simple first anyway. Is it precisely version 2.13 that works, or can slightly older Gradle versions work too? |
@manterfield Please do make a PR! I agree we should update the readme/contrib doc wording given our current limitation. |
And it must be 2.13 at this time. |
Closed by #22669. The docs will be updated once we have moved our builds to use Gradle 3.x and feel comfortable removing support for 2.13. |
Sorry, this has to be reopened, IntelliJ is unhappy with the change. |
Pushed a fix for IntelliJ. |
Elasticsearch version: master
JVM version:
OS version: OS X 10.11.5
Description of the problem including expected versus actual behavior:
Trying to run
gradle build
but getting an error instead of build output, console output below. It looks like theorg.gradle.logging.progress
package was added in 2.14 and moved theorg.gradle.logging.ProgressLogger
class in the process.Steps to reproduce:
master
gradle build
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: