koevet2 wrote:
>
> When I run "gradle uploadArchives" the jar gets copied to the repo
> directory but the name is
> foo-1.0-SNAPSHOT.jar instead of foo-3.0
>
That's because you are uploading the jar created by the 'jar' task, not the
jar created by the 'mySharedJar' task. If you want the 'uploadArchives' task
to also upload the latter jar, you have to add it to the 'archives'
configuration like so:
artifacts {
archives mySharedJar
}
Or, if you would like to upload mySharedJar with a separate task:
configurations {
someName
}
artifacts {
someName mySharedJar
}
This will automatically create an "uploadSomeName" task for you.
For more information, see "Chapter 33. Artifact Management" in the user
guide.
--
Peter Niederwieser
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradle Inc.
http://www.gradle.biz
Founder, Spock Framework
http://spockframework.org
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Create-an-artifact-with-a-different-version-number-as-the-main-project-tp3374437p3374566.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