Open jochenberger opened 11 years ago
+1. I have a task at root level like this:
task notifyPublicationsInEmail {
projects.each {
dependsOn "${it.path}:artifactoryPublish"
}
(...)
}
However:
gradlew artifactoryPublish
and gradlew notifyPublicationsInEmail
separately, the publications will happen twice!
I have a multi-module gradle project for libraries. In most there are changes to only a subset of the projects. In that case, I only want the changed artifacts to be published. I think that the artifactoryPublish task should be up-to-date for the unchanged artifacts. It seems to me that gradle should be able to detect that the task's inputs have not changed, however when running gradle with the
--debug
switch, the log says:If, inspired by http://stackoverflow.com/questions/15655938/gradle-how-to-have-an-upload-task-make-an-up-to-date-check, I add an
artifactoryPublish.outputs.upToDateWhen { true }
to my build, I getMaybe the BuildInfoBaseTask could be changed to declare that it doesn't have any outputs?