Okay, I set version like so:

    def df = new SimpleDateFormat("yyyy-MM-dd-HHmmss")
    version =
"${df.format(now().time)}-HG-${System.getenv()['MERCURIAL_REVISION']}-SNAPSHOT"

And my version number gets updated accordingly. The jar is named as I'd
expect. But when I use a mavenDeployer it deploys using the following
pattern:
/[organisation]/[artifact]/[revision]/[artifact]-[revision*]-[classifier].[ext]

The revision* is my version number with "SNAPSHOT" replaced by a time stamp.
I don't want that, and I also don't want the classifier. The artifactory
plugin allows for a pattern to be manually set, but I can't find similar in
the documentation for either the maven plugin or the uploadArchives task.
Perhaps I missed something very simple. I've tried searching but to no
avail.

I think part of my underlying issue is I can't seem to find a way to
generate a list of all of the underlying properties a convention exposes for
configuration. Is there some way to do that as well?

Thanks.

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Override-Maven-Artifact-Pattern-tp4699461p4699461.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