I’m having a build that adds publish artifacts which are built by some Jar tasks created dynamically. I noticed that if I execute uploadArchives, without having run those Jar tasks, the Upload succeeds but does NOT upload the missing artifacts, although they get defined in the ivy descriptor. The log contains the following ‘DEBUG’ messages:
6:39:01.646 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.IvyLoggingAdaper] missing artifact org.acme#foo;1.0.0!foo-profile.jar(profile):
[java] D:\workspace\acme\antBuild\profiles\foo-profile-1.0.0-sources.jar file does not exist
It seems more appropriate to fail the upload if some artifact is declared but not found, is there a way to do this?
I’m using gradle-1.0-milestone-6-20111114000013+0100.