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
com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation Gradle tasks does not support configuration cache:
- Task `:relocateShadowJar` of type `com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation`: cannot serialize object of type 'com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
See https://docs.gradle.org/7.1.1/userguide/configuration_cache.html#config_cache:requirements:task_access
There is a bit more to this. List<Configuration> should be turned into a List<FileCollection> as it is not supported with CC to hold Configuration fields in tasks. The reference to the other task needs to be removed as it is not supported to hold references to tasks. In other words, "tasks that configure other tasks at execution time" is not supported. That means that the fix here is not trivial.
One way to do it would be to turn ShadowJar.relocators into a ListProperty<Relocator> and add to it mapping from the configurations starting with FileCollection.elements, thus getting rid of the ConfigureShadowRelocation task. Automatic relocation being optional it would need to be behind a flag somehow, maybe on ShadowJar directly. I'm not sure I'll have the time to dive deeper and actually try to implement this in the coming weeks.
com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
Gradle tasks does not support configuration cache:Seems this part in current task implementation:
should be reworked into something like this:
Shadow Version: 7.0.0
Gradle Version: 7.1.1
The text was updated successfully, but these errors were encountered: