Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
adam-enko opened this issue Jul 2, 2024 · 1 comment
Closed

Comments

@adam-enko
Copy link
Member

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'.
@adam-enko
Copy link
Member Author

Duplicated by #237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant