On Sat, Apr 24, 2010 at 9:34 AM, Russel Winder <[email protected]> wrote:

> On Sat, 2010-04-24 at 09:11 +0200, Hans Dockter wrote:
> >
> >
> > On Sat, Apr 24, 2010 at 7:18 AM, Russel Winder <[email protected]>
> > wrote:
> >         The JCSP project seems to produce multiple artefacts from the
> >         same
> >         source, the different artefacts are just different slices of
> >         the
> >         compiled material.  My prejudice is that this is not easy to
> >         do with
> >         Maven and should be doable in Gradle.  Is this rights?  Are
> >         there any
> >         examples of doing this sort of thing that people can point me
> >         at.
> >
> > Have a look at the java samples multi project build and the api
> > project. Or the Groovy or Grails build.
> >
> So the implication is that "one project" <=> "one artefact".
>

Not at all. The api project published two jars.


>
> An alternative I guess is just to use a single project for the main
> artefact and then build the other artefact as an explicitly programmed
> task.  After all the two artefacts are just different assemblies of the
> same compiled class files.
>
> PS  Isn't it about time the Groovy Gradle build got uploaded to the
> Groovy repository to replace the start I made but never followed up?


This has happened (to trunk).

- Hans

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

> --
> Russel.
>
> =============================================================================
> Dr Russel Winder      t: +44 20 7585 2200   voip:
> sip:[email protected] <sip%[email protected]>
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
>

Reply via email to