JetBrains / JetBrains/gradle-python-envs

Failure when using Gradle 8.11.1

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
54
Forks
27
PR merge metrics
No merged PRs in 30d

Description

When using this plugin in Gradle 8.11, it runs afoul of the [disallowed types for serialization](https://docs.gradle.org/8.11.1/userguide/configuration_cache.html#config_cache:requirements:disallowed_types) 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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.