Skip to content

Plugin publication fails on TeamCity due to Sign task dependency #230

@adam-enko

Description

@adam-enko

Updating to Gradle 8.7 #203 has revealed an issue with task configuration.

When running the build in TeamCity, it fails with a task dependency error.

https://teamcity.jetbrains.com/buildConfiguration/KotlinTools_KotlinxBenchmark_Build_Windows/4678719?hideTestsFromDependencies=false&hideProblemsFromDependencies=false&expandBuildChangesSection=true&expandBuildProblemsSection=true&expandBuildDeploymentsSection=false

org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':plugin:signPluginMavenPublication' (type 'Sign').

  - Gradle detected a problem with the following location: 'Z:\BuildAgent\work\ffc241641683f2f5\plugin\build\libs\kotlinx-benchmark-plugin-0.5.0-SNAPSHOT-javadoc.jar.asc'.
    Reason: Task ':plugin:publishBenchmarkPluginPluginMarkerMavenPublicationToBuildLocalRepository' uses this output of task ':plugin:signPluginMavenPublication' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    Possible solutions:
      1. Declare task ':plugin:signPluginMavenPublication' as an input of ':plugin:publishBenchmarkPluginPluginMarkerMavenPublicationToBuildLocalRepository'.
      2. Declare an explicit dependency on ':plugin:signPluginMavenPublication' from ':plugin:publishBenchmarkPluginPluginMarkerMavenPublicationToBuildLocalRepository' using Task#dependsOn.
      3. Declare an explicit dependency on ':plugin:signPluginMavenPublication' from ':plugin:publishBenchmarkPluginPluginMarkerMavenPublicationToBuildLocalRepository' using Task#mustRunAfter.
    For more information, please refer to https://docs.gradle.org/8.7/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
Could not execute [report metric STATISTICS_COLLECT_METRICS_OVERHEAD]
Could not execute [report metric STATISTICS_COLLECT_METRICS_OVERHEAD]
FAILURE: Build completed with 11 failures.
1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':plugin:signPluginMavenPublication' (type 'Sign').
  - Gradle detected a problem with the following location: 'Z:\BuildAgent\work\ffc241641683f2f5\plugin\build\libs\kotlinx-benchmark-plugin-0.5.0-SNAPSHOT-javadoc.jar.asc'.

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