Skip to content

Incompatible with Gradle Configuration Cache #339

@vanniktech

Description

@vanniktech

When running ./gradlew dependencyCheckAnalyze --configuration-cache --stacktrace it does succeed however:

13 problems were found storing the configuration cache, 2 of which seem unique.
- Task `:core-microservice:dependencyCheckAnalyze` of type `org.owasp.dependencycheck.gradle.tasks.Analyze`: 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/7.6.1/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:core-microservice:dependencyCheckAnalyze` of type `org.owasp.dependencycheck.gradle.tasks.Analyze`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/7.6.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

I am using the latest 8.1.2 of this plugin and Gradle 7.6.1

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