Overriding the project version works fine for me:

apply plugin: 'java' 
version = '1.0-SNAPSHOT'

task mySharedJar(type: Jar) {
    version = "3.0"
}

$ gradle build
$ ls build/libs
foo-1.0-SNAPSHOT.jar foo-3.0.jar

By the way, "overwrite:true" overwrites an equally named task, not a task of
the same type. Wondering if that's what you are trying to achieve.

--
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-tp3374437p3374480.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


Reply via email to