On Tue, Dec 22, 2009 at 2:45 AM, Roger Studner <[email protected]> wrote:

> Was looking in the docs.. I can see setting version=xxx
>
> but say I have a folder srtrong
>
> /Users/me/myProj/build.gradle
>
> in the build.gradle I do:
> version='9.0'
>
> when I do gradle war
>
> I always successfully(WOO!) get
> builds/libs/myProj-9.0.war
>
> How can I both rename myProj to something else:
> myProjYay-9.0.war
>
> and even more fun, how to make it put that somewhere other than build/libs
>

If you want to change something only for a particular archive. For example
for the default war archive:

war {
   destinationDir = 'somePath'
   baseName = 'mywar' // leads to mywar-0.9.war
}

See also:
http://gradle.org/latest/docs/groovydoc/index.html?org/gradle/api/tasks/bundling/AbstractArchiveTask.html

If you want to change rules for all archives (e.g. change the conventions)
the approach is differently. In the link Tomek has pointed out you would
have to change:

archivesBaseName and distsDirName (relative to buildDir)

To change the project name you would need to do this in the settings.gradle.

A couple of things:

We hope to provide an IntelliJ plugin in the next month that provides
content assistant in a configure closure.
An IDE plugin should make it easy to access javadoc/groovydoc and source
code of the Gradle API.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


> Thanks,
> Roger
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to