On 18/01/2011, at 5:46 AM, paulcager wrote: > > Suppose I have a project called "thing". Normally this would publish > artifacts to Artifactory with group="com.example" and name="thing". How can > I change the name to say "thing-prod"? > > I'm aware that I can use archivesBaseName, but that isn't quite what I want > (the artifact is still named "thing", but with a filename of > "thing-prod-nnnn.jar"). > > Any ideas, please?
For now, the simplest thing to do is to change the name of the project. Which may not be an option for you. If you are using Artifactory as a Maven repository, you can change the artifactId when you publish the artifacts. Unfortunately, this is broken to some degree, in that project dependencies in a multi-project build are not updated to reflect this when they are published in a pom. For Gradle 1.0, we plan to rework the publishing DSL quite a bit. One such change will be to provide an easy way to specify the module name for the project when publishing to an Ivy repository, or the artifactId when publishing to a Maven repository (or both), and have Gradle automatically translate project dependencies so that they refer to the project using its module name in ivy descriptors, and its artifactId in Maven poms. -- Adam Murdoch Gradle Developer http://www.gradle.org CTO, Gradle Inc. - Gradle Training, Support, Consulting http://www.gradle.biz
