Skip to content

Configuration cache problems found in this build. #33

@DaRealGunko

Description

@DaRealGunko

Im following up this tutorial:
writing-and-publishing-a-kotlin-library

build.gradle.kts

deployer {
    // 1. Artifact definition.
    // https://opensource.deepmedia.io/deployer/artifacts
    content {
        component {
            fromJava() // shorthand for fromSoftwareComponent("java")
        }
    }

    // 2. Project details.
    // https://opensource.deepmedia.io/deployer/configuration
    projectInfo {
        description.set("""
                    DESC
                """.trimIndent())
        url.set("github link")
        scm.fromGithub("user", "repo")
        license(MIT)
        developer("mynick", "myemail", "myorg", "myweb")
        groupId.set("groupid")
        artifactId.set(rootProject.name)
    }

    // 3. Central Portal configuration. - from local.properties
    // https://opensource.deepmedia.io/deployer/repos/central-portal
    centralPortalSpec {
        signing.key.set(secret("SIGNING_KEY"))
        signing.password.set(secret("SIGNING_PASSPHRASE"))
        auth.user.set(secret("MAVEN_USERNAME"))
        auth.password.set(secret("MAVEN_PASSWORD"))
        allowMavenCentralSync.set(false)
    }
}

versions:

.\gradlew -v

------------------------------------------------------------
Gradle 8.11
------------------------------------------------------------

Build time:    2024-11-11 13:58:01 UTC
Revision:      b2ef976169a05b3c76d04f0fa76a940859f96fa4

Kotlin:        2.0.20
Groovy:        3.0.22
Ant:           Apache Ant(TM) version 1.10.14 compiled on August 16 2023
Launcher JVM:  21.0.2 (Oracle Corporation 21.0.2+13-58)
Daemon JVM:    C:\Program Files\Java\jdk-21.0.2 (no JDK specified, using current Java home)
OS:            Windows 11 10.0 amd64

result:

17 problems were found storing the configuration cache, 12 of which seem unique.
- Task `:my-project:generatePomFileForCentralPortalJavaComponentPublication` of type `org.gradle.api.publish.maven.tasks.GenerateMavenPom`: cannot serialize object of type 'io.deepmedia.tools.deployer.specs.CentralPortalFinalizationTask', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:my-project:generatePomFileForCentralPortalJavaComponentPublication` of type `org.gradle.api.publish.maven.tasks.GenerateMavenPom`: cannot serialize object of type 'io.deepmedia.tools.deployer.specs.CentralPortalInitializationTask', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:my-project:generatePomFileForCentralPortalJavaComponentPublication` of type `org.gradle.api.publish.maven.tasks.GenerateMavenPom`: cannot serialize object of type 'org.gradle.api.DefaultTask', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:my-project:generatePomFileForCentralPortalJavaComponentPublication` of type `org.gradle.api.publish.maven.tasks.GenerateMavenPom`: cannot serialize object of type 'org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository', a subtype of 'org.gradle.api.artifacts.repositories.ArtifactRepository', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:my-project:generatePomFileForCentralPortalJavaComponentPublication` of type `org.gradle.api.publish.maven.tasks.GenerateMavenPom`: 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/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:my-project:generatePomFileForCentralPortalJavaComponentPublication` of type `org.gradle.api.publish.maven.tasks.GenerateMavenPom`: cannot serialize object of type 'org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication', a subtype of 'org.gradle.api.publish.Publication', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:my-project:publishCentralPortalJavaComponentPublicationToCentralPortalStorageRepository` of type `org.gradle.api.publish.maven.tasks.PublishToMavenRepository`: cannot serialize object of type 'io.deepmedia.tools.deployer.specs.CentralPortalFinalizationTask', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:my-project:publishCentralPortalJavaComponentPublicationToCentralPortalStorageRepository` of type `org.gradle.api.publish.maven.tasks.PublishToMavenRepository`: cannot serialize object of type 'io.deepmedia.tools.deployer.specs.CentralPortalInitializationTask', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:my-project:publishCentralPortalJavaComponentPublicationToCentralPortalStorageRepository` of type `org.gradle.api.publish.maven.tasks.PublishToMavenRepository`: cannot serialize object of type 'org.gradle.api.DefaultTask', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:my-project:publishCentralPortalJavaComponentPublicationToCentralPortalStorageRepository` of type `org.gradle.api.publish.maven.tasks.PublishToMavenRepository`: cannot serialize object of type 'org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository', a subtype of 'org.gradle.api.artifacts.repositories.ArtifactRepository', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:my-project:publishCentralPortalJavaComponentPublicationToCentralPortalStorageRepository` of type `org.gradle.api.publish.maven.tasks.PublishToMavenRepository`: 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/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:my-project:publishCentralPortalJavaComponentPublicationToCentralPortalStorageRepository` of type `org.gradle.api.publish.maven.tasks.PublishToMavenRepository`: cannot serialize object of type 'org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication', a subtype of 'org.gradle.api.publish.Publication', as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.11/userguide/configuration_cache.html#config_cache:requirements:disallowed_types

Any help?

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