Skip to content

Gradle Configuration caching fails when checkerFramework is enabled #23

Description

@RamAnvesh

When I use checkerframework plugin version 1.0.1 in my project with org.gradle.configuration-cache=true set in gradle.properties, I get the following error at the end of the build:

56 problems were found storing the configuration cache.
- Task `:project-name:compileJava` of type `org.gradle.api.tasks.compile.JavaCompile`: 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/9.3.0/userguide/configuration_cache_requirements.html#config_cache:requirements:disallowed_types
...

My understanding is that the same issue exists in 1.0.2 as well.

When I set skipCheckerFramework = true in the build file, the issue doesn't occur.

  • Gradle plugin version: 1.0.1
  • Checker version: 3.55.1
  • Gradle version: 9.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions