You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When not using forking, there are VM options which "leak" to the Java compiler. I discovered, when investigating #12680, that one "fix" was to add --enable-preview to the daemon options. However, this flag is not considered as part of the cache key for Java compilation.
As a consequence, you can pass compilation by doing:
org.gradle.jvmargs=--enable-preview
then comment that line, and re-run compilation: everything is up-to-date. Run with --rerun-tasks and compilation fails as it should.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.
Expected Behavior
When not using forking, there are VM options which "leak" to the Java compiler. I discovered, when investigating #12680, that one "fix" was to add
--enable-preview
to the daemon options. However, this flag is not considered as part of the cache key for Java compilation.As a consequence, you can pass compilation by doing:
then comment that line, and re-run compilation: everything is up-to-date. Run with
--rerun-tasks
and compilation fails as it should.The text was updated successfully, but these errors were encountered: