Hello
In one of the projects of my multi-project build I generate some code using
a wsdl to Java emitter.
Now, I need to generate an artifact (jar) that contains only a small subset
of the generated file.
The generated jar has to be uploaded to our file based repo, so that is
available to the rest of the projects.
This is how my build file looks like:
build.grade
==================================
apply plugin: 'java'
version = '1.0-SNAPSHOT'
configurations {
secondary_jar
}
task mySharedJar(type: Jar, overwrite: true) {
baseName= 'shared'
...
include('com..../**')
exclude('com.../*_Helper*')
}
artifacts {
secondary_jar mySharedJar
}
uploadArchives {
...
}
==================================
When I run the uploadArchives task, the jar get created and moved to our
file system repo. The name of the jar is "shared-1.0-SNAPSHOT.jar".
What I'd like to do is to specify a different version number for that shared
jar. For instance, I'd like to add a timestamp at the end of the version
number:
shared-1.0.20111010.jar
Please note that the build file is also used to build the "normal" jar, that
has to have version 1.0-SNAPSHOT, so I don't want to change the main version
value.
I have tried to use the "version" attribute of the jar task, but the "super"
version number always takes over.
Any idea?
Thanks
Luciano
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Create-an-artifact-with-a-different-version-number-as-the-main-project-tp3374437p3374437.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