-
Notifications
You must be signed in to change notification settings - Fork 220
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
Updating to Gradle 6.7 or above causes compile error in buildSrc
#892
Comments
Will do. |
Unfortunately, I don't think that this will be possible until gradle/gradle#15942 is fixed. I tried sneaking around Gradle 7's Java compiler limitations in various ways but got nowhere. Even if we were willing to have the ECJ builds run completely separately from regular builds (as we used to do), I don't see any way to convince Gradle 7 to use ECJ instead of a JDK-installation-based compiler. We may have to remove our whole ECJ infrastructure, and give up on the corresponding extra checks, until gradle/gradle#15942 makes this possible again. 😞 I could certainly do that if we decide that it's the best way forward. Or we could linger on Gradle 6.x for a while longer to see if anything happens with gradle/gradle#15942. |
Thanks for the investigation, @liblit. I am not in an extreme hurry to update to Gradle 7, though I would like to do it eventually. I'm not too optimistic about quick progress on gradle/gradle#15942, given it's been open since January. Still, we can wait for a bit and see what happens. If there is no progress, and we need to remove the ECJ infrastructure, we could do at least some of the checking using Error Prone, which integrates with OpenJDK's |
buildSrc
buildSrc
I wrote:
I believe that I have figured out how to make this work. I have a simple, stand-alone Java project that builds using Gradle 7.2 and a standard JVM 1.8 installation, but which compiles Java by running an external I need to do some more work to incorporate this solution into WALA’s build system. But at least I now believe that it can be done, which is a big improvement. |
Fixes wala#892, thereby allowing us to continue using ECJ as a secondary compiler.
Fixes #892, thereby allowing us to continue using ECJ as a secondary compiler.
If I run
./gradlew wrapper --gradle-version 7.0.2
and then./gradlew --dry-run
, I get errors when compilingbuildSrc
:We are likely blocked on upgrading Gradle until we can fix these. @liblit could you take a look when you have some time?
Update: in further searching, I found that the relevant changes were introduced in Gradle 6.7, so we are also blocked from updating to more recent Gradle 6.x releases.
The text was updated successfully, but these errors were encountered: