org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'.

JFrog JIRA | Evgeny Goldin | 5 years ago
  1. 0

    I have a TeamCity configuration publishing Gradle artifacts to Artifactory. After upgrading to Gradle 1.0-m4 it now fails with {code} [02:50:07]: FAILURE: Build failed with an exception. [02:50:07]: * What went wrong: [02:50:07]: Execution failed for task ':artifactoryPublish'. [02:50:07]: Cause: org.gradle.api.artifacts.Configuration.getArtifacts()Ljava/util/Set; [02:50:07]: * Try: [02:50:07]: Run with --info or --debug option to get more log output. [02:50:07]: * Exception is: [02:50:07]: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'. [02:50:07]: at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71) [02:50:07]: at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48) [02:50:07]: at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34) [02:50:07]: at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55) [02:50:07]: at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57) [02:50:07]: at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41) [02:50:07]: at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) [02:50:07]: at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52) [02:50:07]: at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42) [02:50:07]: at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:237) [02:50:07]: at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167) [02:50:07]: BUILD FAILED [02:50:07]: at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160) [02:50:07]: at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78) [02:50:07]: Total time: 2 mins 9.265 secs [02:50:07]: at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113) [02:50:07]: at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) [02:50:07]: at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:155) [02:50:07]: at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:109) [02:50:07]: at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:77) [02:50:07]: at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41) [02:50:07]: at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27) [02:50:07]: at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32) [02:50:07]: at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21) [02:50:07]: at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219) [02:50:07]: at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203) [02:50:07]: at org.gradle.launcher.Main.execute(Main.java:55) [02:50:07]: at org.gradle.launcher.Main.main(Main.java:40) [02:50:07]: at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:49) [02:50:07]: at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:31) [02:50:07]: at org.gradle.launcher.GradleMain.main(GradleMain.java:24) [02:50:07]: Caused by: java.lang.NoSuchMethodError: org.gradle.api.artifacts.Configuration.getArtifacts()Ljava/util/Set; [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask.getDeployArtifactsProject(BuildInfoRecorderTask.java:568) [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask.collectDescriptorsAndArtifactsForUpload(BuildInfoRecorderTask.java:387) [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask.closeAndDeploy(BuildInfoRecorderTask.java:470) [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask.collectProjectBuildInfo(BuildInfoRecorderTask.java:374) [02:50:07]: at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158) [02:50:07]: at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93) [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask_Decorated.invokeMethod(Unknown Source) [02:50:07]: at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) [02:50:07]: at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:129) [02:50:07]: at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:127) [02:50:07]: at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:63) [02:50:07]: ... 28 more [02:50:07]: Process exited with code 1 {code}

    JFrog JIRA | 5 years ago | Evgeny Goldin
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'.
  2. 0

    I have a TeamCity configuration publishing Gradle artifacts to Artifactory. After upgrading to Gradle 1.0-m4 it now fails with {code} [02:50:07]: FAILURE: Build failed with an exception. [02:50:07]: * What went wrong: [02:50:07]: Execution failed for task ':artifactoryPublish'. [02:50:07]: Cause: org.gradle.api.artifacts.Configuration.getArtifacts()Ljava/util/Set; [02:50:07]: * Try: [02:50:07]: Run with --info or --debug option to get more log output. [02:50:07]: * Exception is: [02:50:07]: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'. [02:50:07]: at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71) [02:50:07]: at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48) [02:50:07]: at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34) [02:50:07]: at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55) [02:50:07]: at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57) [02:50:07]: at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41) [02:50:07]: at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) [02:50:07]: at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52) [02:50:07]: at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42) [02:50:07]: at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:237) [02:50:07]: at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167) [02:50:07]: BUILD FAILED [02:50:07]: at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160) [02:50:07]: at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78) [02:50:07]: Total time: 2 mins 9.265 secs [02:50:07]: at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113) [02:50:07]: at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) [02:50:07]: at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:155) [02:50:07]: at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:109) [02:50:07]: at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:77) [02:50:07]: at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41) [02:50:07]: at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27) [02:50:07]: at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32) [02:50:07]: at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21) [02:50:07]: at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219) [02:50:07]: at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203) [02:50:07]: at org.gradle.launcher.Main.execute(Main.java:55) [02:50:07]: at org.gradle.launcher.Main.main(Main.java:40) [02:50:07]: at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:49) [02:50:07]: at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:31) [02:50:07]: at org.gradle.launcher.GradleMain.main(GradleMain.java:24) [02:50:07]: Caused by: java.lang.NoSuchMethodError: org.gradle.api.artifacts.Configuration.getArtifacts()Ljava/util/Set; [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask.getDeployArtifactsProject(BuildInfoRecorderTask.java:568) [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask.collectDescriptorsAndArtifactsForUpload(BuildInfoRecorderTask.java:387) [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask.closeAndDeploy(BuildInfoRecorderTask.java:470) [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask.collectProjectBuildInfo(BuildInfoRecorderTask.java:374) [02:50:07]: at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158) [02:50:07]: at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93) [02:50:07]: at org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoRecorderTask_Decorated.invokeMethod(Unknown Source) [02:50:07]: at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) [02:50:07]: at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:129) [02:50:07]: at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:127) [02:50:07]: at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:63) [02:50:07]: ... 28 more [02:50:07]: Process exited with code 1 {code}

    JFrog JIRA | 5 years ago | Evgeny Goldin
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'.
  3. 0

    Gradle build fails in windows environment

    GitHub | 2 years ago | thomasLevans
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':busterTest'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to determine the current character, it is not a string, number, array, or object

    GitHub | 2 years ago | bartoszkopinski
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:uploadStagingReleaseToHockeyApp'.
  6. 0

    GitHub comment 945#63168682

    GitHub | 2 years ago | kullmanp
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':bndtools.core:classycle'.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.gradle.api.tasks.TaskExecutionException

      Execution failed for task ':artifactoryPublish'.

      at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions()
    2. Gradle Core
      DefaultTaskGraphExecuter.executeTask
      1. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:71)
      2. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:48)
      3. org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34)
      4. org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55)
      5. org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
      6. org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
      7. org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
      8. org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
      9. org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)
      10. org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:237)
      11. org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167)
      11 frames