1 Feb 2006 22:11
[groovy-dev] Graven
Hiall, I just played with Groovy RootLoader that gives you the ability to add URL to your current classloader. I asked myself what jars to add and found that I have all the interesting ones in user_home/.maven(Continue reading)Now comes the idea: in Groovy we could have a simple method call like requires 'jfugue', '> 0.9' to refer to such downloaded jars and add them to the cp at runtime and download them if needed. This is where maven comes into play to find out all transitive dependencies. With the help of the according maven classes this would be quite easy to implement. In combination with maven we would have an equivalent feature to Ruby-Gem for almost free. cheers Mittie P.S. consequence: maven.jar needs to be added to the Groovy distro. P.P.S. this only works where RootLoader is available.
Now comes the idea: in Groovy we could have a simple
method call like
requires 'jfugue', '> 0.9'
to refer to such downloaded jars and add them to the
cp at runtime and download them if needed.
This is where maven comes into play to find out
all transitive dependencies.
With the help of the according maven classes this
would be quite easy to implement. In combination
with maven we would have an equivalent feature
to Ruby-Gem for almost free.
cheers
Mittie
P.S. consequence: maven.jar needs to be added to
the Groovy distro.
P.P.S. this only works where RootLoader is
available.
Maven would allow some reuse for existing
Java-Libs.
Note that this is not about Groovy build support
but Groovy runtime support. -> No need to write
extra OS-dependent starter files with cp settings.
cheers
Mittie
> -----Original Message-----
> From: Marc Palmer [mailto:
RSS Feed