Configuration Cache Miss due to idea.io.use.nio2
system property change
#30145
Labels
Milestone
idea.io.use.nio2
system property change
#30145
Current Behavior
Given a Gradle project where one of the components (incorrectly) calls
System.getProperties()
, if we populate the configuration cache with a simplehelp
, the subsequent build cannot reuse the cache entry because:The third build hits the configuration cache correctly.
Initially, we thought this issue might be related to working in local environments when switching between the IDE and command-line. However, we were able to reproduce this issue in CI ephemeral agents where the build is only executed through the command line.
Upon checking the Kotlin GitHub repository, we observed that the property is set here: Kotlin GitHub Link. This function has various references in the repository, as seen here: Search Results for setIdeaIoUseFallback in Kotlin.
Additionally, we noticed that this function is called within Gradle code: Search Results for setIdeaIoUseFallback in Gradle.
It’s unclear if this is happening during the compilation of the Kotlin scripts.
Expected Behavior
The second build hits the configuration cache
Context (optional)
No response
Steps to Reproduce
./gradlew :help --configuration-cache
./gradlew :help --configuration-cache
Gradle version
8.9
Build scan URL (optional)
https://ge.solutions-team.gradle.com/s/at7gzw5arneok/console-log?page=1#L0
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: