0

I'm configuring Gradle Release plugin 2.6.0 and want to use buildTasks as follows (it is in the root build.gradle):

buildTasks = ['clean', 'build', 'subprojectA:artifactoryPublish', 'subprojectB:artifactoryPublish']

in order to publish two jars only.

However, Gradle can't configure the project complaining as follows:

Task with name 'subprojectA:artifactoryPublish' not found in root project 'rootProject'.

How do I do it?

Thank you very much!

Dmitry Senkovich
  • 5,521
  • 8
  • 37
  • 74

1 Answers1

1

Instead use the afterReleaseBuild task like described in the readme.

afterReleaseBuild.dependsOn subprojectA:artifactoryPublish

Hillkorn
  • 633
  • 4
  • 12