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 I run ./gradlew jsBrowserDevelopmentWebpack I get errors relating to Gradle Configuration cache in my console output
7 problems were found storing the configuration cache, 2 of which seem unique.
- Task `:site2:unpackSkikoWasmRuntimeJs` of type `org.jetbrains.compose.experimental.web.tasks.ExperimentalUnpackSkikoWasmRuntimeTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/7.6/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:unpackSkikoWasmRuntimeJs` of type `org.jetbrains.compose.experimental.web.tasks.ExperimentalUnpackSkikoWasmRuntimeTask`: cannot serialize object of type 'org.gradle.api.internal.artifacts.configurations.DefaultConfiguration', a subtype of 'org.gradle.api.artifacts.Configuration', as these are not supported with the configuration cache.
See https://docs.gradle.org/7.6/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
When I run
./gradlew jsBrowserDevelopmentWebpack
I get errors relating to Gradle Configuration cache in my console outputhttps://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
However,
ExperimentalUnpackSkikoWasmRuntimeTask
does useTask.getProject()
during the execution phase:https://github.com/JetBrains/compose-jb/blob/d6ff80c062e43395923d6da8c59b395c17c8478b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/experimental/web/tasks/ExperimentalUnpackSkikoWasmRuntimeTask.kt#L26-L27
https://github.com/JetBrains/compose-jb/blob/d6ff80c062e43395923d6da8c59b395c17c8478b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/experimental/web/tasks/ExperimentalUnpackSkikoWasmRuntimeTask.kt#L40-L41
https://github.com/JetBrains/compose-jb/blob/d6ff80c062e43395923d6da8c59b395c17c8478b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/experimental/web/tasks/ExperimentalUnpackSkikoWasmRuntimeTask.kt#L46
https://github.com/JetBrains/compose-jb/blob/d6ff80c062e43395923d6da8c59b395c17c8478b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/experimental/web/tasks/ExperimentalUnpackSkikoWasmRuntimeTask.kt#L47
Some of these usages have drop-in replacements
Fixing the use of
project.configurations
is slightly more tricky. The Gradle docs give examples:The text was updated successfully, but these errors were encountered: