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 8 compatibility #9
Comments
I was pointed at https://docs.gradle.org/current/userguide/upgrading_version_7.html#toolchain_based_tasks_for_jvm_projects by someone.
It seems as if there is simply no supported way to accomplish this anymore at the moment. (See gradle/gradle#14768 and gradle/gradle#22400) |
See also gradle/gradle#15942 (comment) |
Alright. I filed gradle/gradle#23990 since this seems to be a regression. Can't do anything else here for now. |
The WALA project compiles all code twice: once using standard |
Hi @liblit, |
WALA's strategy to compile everything twice is intentional. We like getting two compilers' opinions on our code. Certainly, the big overhead of doing that isn't for everyone. WALA's approach requires that I create new compilation instances using a new I merely thought that people looking at this issue might benefit from seeing how a related (but different) problem was solved, and maybe get some new ideas of their own. For example, perhaps someone can figure out how to configure other tasks (e.g., |
This is incomplete and does not fully work yet. We might have to get rid of the lazy configuration of `forkOptions.executable`. See gradle/gradle#23990 (comment) See #9
I have implemented support for (what will probably be) Gradle 8.0.2 based on the fix for the reported issue and this suggestion. The approach taken for 7.x and 8.x is now slightly different and using the plugin for 8.x will now provide a better experience:
|
Gradle 8 changed a lot of internals to use the property&provider API more extensively. This has caused the configuration applied by this plugin to break. I'm aware that the configuration could be considered hacky but, unfortunately, I'm not aware of a public API to implement the plugin properly.
Specifically, the plugin currently sets the
javaCompiler
property ofJavaCompile
tasks tonull
to avoid some default configuration. The ECJ is later plugged in using theforkOptions
. This works on Gradle 7.x but not on later versions. Adjustments are necessary to fix this.[ ] Reenable CI checks for the samplesThe text was updated successfully, but these errors were encountered: