On 9/03/10 7:14 AM, Jesse Eichar wrote:
On Mon, Mar 8, 2010 at 5:36 PM, Jesse Eichar <[email protected] <mailto:[email protected]>> wrote:Hi, I have customized my build so that there are 3 artifacts. I have customized uploadArtifacts so all 3 artifacts are uploaded to a remote maven repository. Now I want to customize install so that they are installed in the local repository.After applying the Maven plugin there is an install task. Executing this install task will store by default all artifacts of the archives configuration to your local Maven repo. By default the default jar is part of the archives configuration. You can add additional jars like:artifacts { archives jar1, jar2 }This is what I tried at first because that is how I expected it to work. I am using 0.8 so perhaps there is a bug related to what I am doing. I am glad to know that is how it is expected to work. I am sure I can figure it out now that I know that is the correct method.
There is a bug in 0.8, which has since been fixed, which means you can't have more than one artifact. So what you are doing is how it's supposed to work, but it was broken in 0.8. Unfortunately, I don't think there's a good work around. You could use a 0.9 snapshot. Or you could use the maven ant tasks directly.
-- Adam Murdoch Gradle Developer http://www.gradle.org
