On 9/06/10 2:24 AM, Philip Crotwell wrote:
Hi
I filed a bug report on jar artifacts from the java plugin not
including the version number. In other words the default is myproj.jar
instead of myproj-1.0.7.jar. See GRADLE-963
In the mean time, is there a way to tell the java plugin to name the
jar file output to include the version in the name? My read of the
documentation seemed to indicate that this should be the way it works,
and I was unable to find how to set that as the default name in the
user guide.
This<name>-<version>.jar convention seems to be a pretty standard
java practice, and one I think is very useful and it would be great if
it was the default I think.
This is the default. The version should be included in the jar name.
However, the version is included in the jar name only if a version has
been specified for the project.
Some reasons why this might not be working:
- You're not actually setting the version property
- You're (indirectly) using the jar file name before the version
property has been set
- Something's broken in Gradle (or one of the updated dependencies).
How are you setting the project version?
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email