Hi Peter,
now I get it .
But still, the uploaded artifacts has the incorrect version.

build.gradle
============================
apply plugin: 'java'
version = '1.0-SNAPSHOT'
group = 'com.some'

configurations {
  shared
}

task sharedJar(type: Jar) {
   baseName = 'shared'
   version = "3.9"
...
}

artifacts {
  shared sharedJar
}

uploadShared {
    uploadDescriptor = false
    repositories {
        add project.repositories.localRepository
    }
}
============================

When I run "gradle uploadShared" a jar is created in the proper folder but
the version is 1.0-SNAPSHOT.

Luciano

-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/Create-an-artifact-with-a-different-version-number-as-the-main-project-tp3374437p3375682.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