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
There are a number of types that task instances must not reference from their fields.
These types fall into some categories as follows:
Live JVM state types
Gradle model types
Dependency management types
In all cases the reason these types are disallowed is that their state cannot easily be stored or recreated by the configuration cache.
Specifically
Gradle model types (e.g. Gradle, Settings, Project, SourceSet, Configuration etc…) are usually used to carry some task input that should be explicitly and precisely declared instead.
Issue can be checked with command ./gradlew --configuration-cache clean build k8sBuild in the quickstarts/gradle/spring-boot
* What went wrong:
Configuration cache problems found in this build.
1 problem was found storing the configuration cache.
- Task `:k8sBuild` of type `org.eclipse.jkube.gradle.plugin.task.KubernetesBuildTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/8.7/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
Due to the complexity of the operations performed at GradleUtil.convertGradleProject and the requirement for multiple project entries (maybe some only available at runtime), it's going to be almost impossible to fix this issue.
I'd suggest to close as won't fix.
I'd only invest more time on this in case this feature becomes critical for some user.
Description
Mirror of fabric8io/kubernetes-client#6038
@Sineaggi
The text was updated successfully, but these errors were encountered: