Skip to content

Failure when using Gradle 8.11.1 #41

@kruton

Description

@kruton

When using this plugin in Gradle 8.11, it runs afoul of the disallowed types for serialization by referencing Project it appears. These references should be replaced with dependency injection for the specific operation type desired. It looks like most of the references are project.logger or project.exec which can use Task.logger and ExecOperations.exec respectively.

* What went wrong:
Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Task `:Bootstrap_CONDA_'miniconda'` of type `org.gradle.api.DefaultTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11.1/userguide/configuration_cache.html#config_cache:requirements:disallowed_types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions