In case anybody's interested, I managed to "solve" this problem with a huge hack:
I added a "String artifactName" field to org.gradle.api.internal.project.AbstractProject, and I changed AbstractProject.getName() to: public String getName() { // HACK!!! // There doesn't seem to be a way to change the name of the artifacts on upload. So we look // at the stack trace and return 'artifactName' whenever we're called by methods in // org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoTask. StackTraceElement elements[] = Thread.currentThread().getStackTrace(); // elements[0] = Thread.getStackTrace() // elements[1] = the call to this method // elements[2] = the method that called this method if ((artifactName != null) && "org.jfrog.gradle.plugin.artifactory.extractor.BuildInfoTask".equals(elements[2].getClassName())) { return artifactName; } return name; } And then in build.gradle I can just do: artifactName = blah -- View this message in context: http://gradle.1045684.n5.nabble.com/Changing-artifact-name-on-upload-tp3344960p4901041.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email