On Thu, Mar 11, 2010 at 10:52 AM, Andreas Netter <[email protected]> wrote:

>
> Just tried the nightly build and it works fine. Thanks Hans.
>
> But if the module name is not customizable we have a problem with the
> gradle
> build in Hudson.
> Hudson creates per default the directory hudsonjobname/workspace/ for the
> sources of a Hudson build job.
> The build result is then published with the module name "workspace".
>

You can change the root project name in the settings.gradle with the line:
rootProject.name = 'yourname'

It is kind of awkward to have a settings.gradle for a single project build.
But it works. The reason is that as Gradle starts evaluating the build
scripts, the name must be read only (requirement for multi-project builds).
Therefore we need to set project names before build scripts are evaluated.
In the future we might also allow doing this in the build.gradle itself by
using AST transformations.

- Hans

--
Hans Dockter
Founder, Gradle
http://www.gradle.org, http://twitter.com/gradleorg
CEO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz



>
> Regards, Andi
>
>
> Hans Dockter wrote:
> >
> > The issue is fixed in trunk. When publishing to Ivy repositories, the
> > module
> > name used in the resolver pattern is now always just the project name. Be
> > it
> > for publishing root projects or subprojects.
> >
> > - Hans
> >
> > --
> > Hans Dockter
> > Founder, Gradle
> > http://www.gradle.org, http://twitter.com/gradleorg
> > CEO, Gradle Inc. - Gradle Training, Support, Consulting
> > http://www.gradle.biz
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/basic-ivy-publication-question-tp27831360p27861374.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