I use the project() method to declare the dependency.
define "hello-dolly" do
define "mod1" do
package(:jar)
end
define "mod2" do
compile.with project("mod1")
package(:jar)
end
end
Alexis
On Fri, Mar 27, 2009 at 3:31 PM, Assaf Arkin <[email protected]> wrote:
> On Fri, Mar 27, 2009 at 2:42 PM, Alexis Midon <[email protected]>
> wrote:
>
> >
> > Hi guys,
> >
> > I have attached a simple HelloWorld project, with 2 modules, mod2 depends
> > on mod1.
> > When I test mod2, mod1 gets packaged. is that the expected behavior? I'd
> > say no.
>
>
> Does mod2 have mod1.jar as a classpath dependency?
>
> Assaf
>
>
> >
> >
> > ~/p/hello-dolly$buildr clean test
> > (in /home/alexis/p/hello-dolly, development)
> > Cleaning hello-dolly
> > Testing hello-dolly
> > Compiling hello-dolly:mod1 into
> > /home/alexis/p/hello-dolly/mod1/target/classes
> > Packaging hello-dolly-mod1-1.0.0.jar
> > Compiling hello-dolly:mod2 into
> > /home/alexis/p/hello-dolly/mod2/target/classes
> > Testing hello-dolly:mod1
> > Testing hello-dolly:mod2
> > Compiling hello-dolly:mod2:test into
> > /home/alexis/p/hello-dolly/mod2/target/test/classes
> > Running tests in hello-dolly:mod2
> > Trying to override old definition of datatype junit
> >
> >
> > Alexis
> >
>