moizni01
(Moiz)
November 16, 2021, 10:03pm
1
Hello,
We’re upgrading from Gradle 5.2 → 7.2 which forced us to use the maven-publish plugin instead of the maven plugin.
I’ve done a lot of debugging and article researching as well as making sure that I am following the documentation specified in the gradle docs for maven-publish plugin but still seem to be getting the same error. There are no surrounding errors while building the release with the --debug flag.
There are a couple things I don’t quite understand.
What is happening to the apache wagon deployerJars. In some legacy documentation I see it being utilized, but not sure how to do the conversion for it with maven-publish plugin.
Why do I keep getting this error below despite following the documentation
The error I’m getting is:
org.gradle.internal.typeconversion.UnsupportedNotationException: Cannot convert extension 'publishing' to a task.
The following types/formats are supported:
- A String or CharSequence task name or path
- A Task instance
- A TaskReference instance
- A Buildable instance
- A TaskDependency instance
- A Provider that represents a task output
- A Provider instance that returns any of these types
- A Closure instance that returns any of these types
- A Callable instance that returns any of these types
- An Iterable, Collection, Map or array instance that contains any of these types
Previous gradle code for uploadArchives:
configurations {
deployerJars
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
testImplementation.extendsFrom compileOnly
jacocoAgent
}
dependencies{
...
deployerJars 'org.apache.maven.wagon:wagon-ssh:2.2'
}
artifacts {
archives sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {
configuration = configurations.deployerJars
repository(url: "${repoUrl}") {
authentication(userName: omitted, password: omitted)
}
}
}
}
afterReleaseBuild.dependsOn uploadArchives
New gradle code with maven-publish plugin:
plugins {
id 'com.bmuschko.docker-remote-api' version '6.7.0'
id "com.dorongold.task-tree" version "1.3.1"
id 'com.patdouble.awsecr' version '0.6.2'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'net.researchgate.release' version '2.8.1'
id 'org.springframework.boot' version '2.5.6'
id 'org.sonarqube' version '2.7'
id "io.freefair.lombok" version "6.2.0"
id "io.swagger.core.v3.swagger-gradle-plugin" version "2.1.10"
id 'com.avast.gradle.docker-compose' version "0.14.9"
id "jacoco"
id "java"
id "maven-publish"
}
configurations {
[apiElements, runtimeElements].each {
it.outgoing.artifacts.removeIf { it.buildDependencies.getDependencies(null).contains(jar) }
it.outgoing.artifact(bootJar)
}
deployerJars
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntime.extendsFrom testRuntime
testImplementation.extendsFrom compileOnly
jacocoAgent
}
dependencies{
...
deployerJars 'org.apache.maven.wagon:wagon-ssh:2.2'
}
artifacts {
archives sourcesJar
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
// artifact configurations.deployerJars // Tried this but failed with > Cannot convert the provided notation to an object of type MavenArtifact: configuration ':deployerJars'.
// Publish the output of the sourceJar task
//artifact 'my-file-name.jar' // Publish a file created outside of the build
//artifact source: sourceJar, classifier: 'src', extension: 'zip'
}
}
repositories {
maven {
url = "${repoUrl}"
credentials {
username = omitted
password = omitted
}
}
}
}
afterReleaseBuild.dependsOn publish
afterReleaseBuild.dependsOn pushImage
afterReleaseBuild.dependsOn createHelmValuesFile
release {
git {
requireBranch = null
}
tagTemplate = '${name}-${version}'
failOnCommitNeeded = false
buildTasks = ['build']
}
Vampire
(Björn Kautler)
November 16, 2021, 10:54pm
2
What does --stacktrace
say where the error comes from?
moizni01
(Moiz)
November 16, 2021, 11:35pm
5
Going to try this again. Getting filtered out by the spam bot. Here’s the stacktrace
[15:08:15]W: [Gradle failure report] * Exception is:
[15:08:15]W: [Gradle failure report] org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':41f302482142e7c5:41f302482142e7c5:afterReleaseBuild'.
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:71)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.TaskDependencyResolver.resolveDependenciesFor(TaskDependencyResolver.java:46)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.LocalTaskNode.getDependencies(LocalTaskNode.java:161)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.LocalTaskNode.resolveDependencies(LocalTaskNode.java:129)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.DefaultExecutionPlan.doAddNodes(DefaultExecutionPlan.java:186)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.DefaultExecutionPlan.addEntryTasks(DefaultExecutionPlan.java:150)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.addEntryTasks(DefaultTaskExecutionGraph.java:146)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.TaskNameResolvingBuildConfigurationAction.configure(TaskNameResolvingBuildConfigurationAction.java:49)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:51)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$000(DefaultBuildConfigurationActionExecuter.java:25)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.DefaultBuildConfigurationActionExecuter$1.proceed(DefaultBuildConfigurationActionExecuter.java:59)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.DefaultTasksBuildExecutionAction.configure(DefaultTasksBuildExecutionAction.java:45)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:51)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.DefaultBuildConfigurationActionExecuter.lambda$select$0(DefaultBuildConfigurationActionExecuter.java:38)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.Factories$1.create(Factories.java:31)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.project.DefaultProjectStateRegistry.withMutableStateOfAllProjects(DefaultProjectStateRegistry.java:160)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.project.DefaultProjectStateRegistry.withMutableStateOfAllProjects(DefaultProjectStateRegistry.java:147)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.DefaultBuildConfigurationActionExecuter.select(DefaultBuildConfigurationActionExecuter.java:37)
[15:08:15]W: [Gradle failure report] at org.gradle.initialization.DefaultTaskExecutionPreparer.prepareForTaskExecution(DefaultTaskExecutionPreparer.java:39)
[15:08:15]W: [Gradle failure report] at org.gradle.initialization.VintageBuildModelController.prepareTaskExecution(VintageBuildModelController.java:111)
[15:08:15]W: [Gradle failure report] at org.gradle.initialization.VintageBuildModelController.doBuildStages(VintageBuildModelController.java:85)
[15:08:15]W: [Gradle failure report] at org.gradle.initialization.VintageBuildModelController.scheduleRequestedTasks(VintageBuildModelController.java:69)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$scheduleRequestedTasks$1(DefaultBuildLifecycleController.java:114)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.DefaultBuildWorkPreparer.populateWorkGraph(DefaultBuildWorkPreparer.java:28)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.BuildOperationFiringBuildWorkPreparer$PopulateWorkGraph.populateTaskGraph(BuildOperationFiringBuildWorkPreparer.java:120)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.BuildOperationFiringBuildWorkPreparer$PopulateWorkGraph.run(BuildOperationFiringBuildWorkPreparer.java:76)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:74)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:74)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.BuildOperationFiringBuildWorkPreparer.populateWorkGraph(BuildOperationFiringBuildWorkPreparer.java:60)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$scheduleRequestedTasks$2(DefaultBuildLifecycleController.java:114)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.DefaultBuildLifecycleController.lambda$withModelOrThrow$5(DefaultBuildLifecycleController.java:142)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.DefaultBuildLifecycleController.withModel(DefaultBuildLifecycleController.java:157)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.DefaultBuildLifecycleController.withModelOrThrow(DefaultBuildLifecycleController.java:140)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.DefaultBuildLifecycleController.scheduleRequestedTasks(DefaultBuildLifecycleController.java:111)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.lambda$scheduleRequestedTasks$0(DefaultBuildTreeWorkPreparer.java:35)
[15:08:15]W: [Gradle failure report] at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph$1.run(DefaultIncludedBuildTaskGraph.java:113)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:74)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:74)
[15:08:15]W: [Gradle failure report] at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph.lambda$prepareTaskGraph$0(DefaultIncludedBuildTaskGraph.java:110)
[15:08:15]W: [Gradle failure report] at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph.withState(DefaultIncludedBuildTaskGraph.java:236)
[15:08:15]W: [Gradle failure report] at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph.prepareTaskGraph(DefaultIncludedBuildTaskGraph.java:107)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.buildtree.DefaultBuildTreeWorkPreparer.scheduleRequestedTasks(DefaultBuildTreeWorkPreparer.java:34)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$doScheduleAndRunTasks$1(DefaultBuildTreeLifecycleController.java:83)
[15:08:15]W: [Gradle failure report] at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph.withNewTaskGraph(DefaultIncludedBuildTaskGraph.java:94)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.doScheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:82)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:104)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.scheduleAndRunTasks(DefaultBuildTreeLifecycleController.java:64)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.NestedRootBuildRunner.lambda$runNestedRootBuild$0(NestedRootBuildRunner.java:34)
[15:08:15]W: [Gradle failure report] at org.gradle.composite.internal.RootOfNestedBuildTree$1.call(RootOfNestedBuildTree.java:205)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:79)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:79)
[15:08:15]W: [Gradle failure report] at org.gradle.composite.internal.RootOfNestedBuildTree.run(RootOfNestedBuildTree.java:196)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.build.NestedRootBuildRunner.runNestedRootBuild(NestedRootBuildRunner.java:33)
[15:08:15]W: [Gradle failure report] at org.gradle.api.tasks.GradleBuild.build(GradleBuild.java:189)
[15:08:15]W: [Gradle failure report] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:08:15]W: [Gradle failure report] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[15:08:15]W: [Gradle failure report] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.run(ExecuteActionsTaskExecuter.java:502)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:74)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:74)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:487)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:470)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:106)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:271)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:249)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:89)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:40)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:53)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:50)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:79)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:79)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:50)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:40)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:38)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:50)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:36)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:29)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:58)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:39)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:60)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:27)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:180)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:75)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:46)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:40)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:29)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:105)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:98)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:53)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:37)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:85)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:42)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:92)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:50)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:114)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:57)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:73)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:47)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:92)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:92)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:33)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:43)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:31)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:40)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution$2.withWorkspace(ExecuteActionsTaskExecuter.java:284)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:40)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:44)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:33)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:76)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:185)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:174)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:79)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:79)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:74)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:402)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:389)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:382)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:368)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
[15:08:15]W: [Gradle failure report] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:61)
[15:08:15]W: [Gradle failure report] Caused by: org.gradle.internal.typeconversion.UnsupportedNotationException: Cannot convert extension 'publishing' to a task.
[15:08:15]W: [Gradle failure report] The following types/formats are supported:
[15:08:15]W: [Gradle failure report] - A String or CharSequence task name or path
[15:08:15]W: [Gradle failure report] - A Task instance
[15:08:15]W: [Gradle failure report] - A TaskReference instance
[15:08:15]W: [Gradle failure report] - A Buildable instance
[15:08:15]W: [Gradle failure report] - A TaskDependency instance
[15:08:15]W: [Gradle failure report] - A Provider that represents a task output
[15:08:15]W: [Gradle failure report] - A Provider instance that returns any of these types
[15:08:15]W: [Gradle failure report] - A Closure instance that returns any of these types
[15:08:15]W: [Gradle failure report] - A Callable instance that returns any of these types
[15:08:15]W: [Gradle failure report] - An Iterable, Collection, Map or array instance that contains any of these types
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.DefaultTaskDependency.visitDependencies(DefaultTaskDependency.java:154)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext$TaskGraphImpl.getNodeValues(CachingTaskDependencyResolveContext.java:114)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.graph.CachingDirectedGraphWalker$GraphWithEmptyEdges.getNodeValues(CachingDirectedGraphWalker.java:213)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.graph.CachingDirectedGraphWalker.doSearch(CachingDirectedGraphWalker.java:121)
[15:08:15]W: [Gradle failure report] at org.gradle.internal.graph.CachingDirectedGraphWalker.findValues(CachingDirectedGraphWalker.java:73)
[15:08:15]W: [Gradle failure report] at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:69)
[15:08:15]W: [Gradle failure report] ... 199 more
Chris_Dore
(Chris Doré)
November 18, 2021, 5:45am
7
Are you sure your build script matches the above (what’s shown in your original post) and that you don’t actually have something like afterReleaseBuild.dependsOn publishing
? The exception suggests that the publishing
extension has been configured as a task dependency.
1 Like
moizni01
(Moiz)
November 18, 2021, 9:46pm
8
Yes, all the aforementioned snippets were copy pasted from the build.gradle file
moizni01
(Moiz)
November 23, 2021, 5:22pm
9
I ended up downgrading to 6.9.1 in the meantime and reverted back to using the maven plugin.
I’ll post if I get it working with 7.x in a later attempt
moizni01
(Moiz)
December 10, 2021, 12:10am
10
I just tried this with the 7.3.1 release and it works fine.