You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Jon Barksdale <jo...@gmail.com> on 2009/04/02 20:28:48 UTC
groovy compiler version
Hi,
I have recently been experimenting with buildr, and I can't for the life of
me figure out how to get the groovy compiler to use groovy 1.6.0. This is
probably because my ruby foo is weak, but I've tried everything I've seen in
the documentation, both on the site and in the code around the groovy
module, and I'm still missing it. Could anyone help point me in the right
direction?
Here is the top of my buildfile (the commented out parts are things that
I've tried, no luck):
require 'buildr'
#artifact_ns("Buildr::Compiler::Groovyc").groovy = '1.6.0'
#artifact_ns["Buildr::Compiler::Groovyc"].groovy = '1.6.0'
#artifact_ns("Buildr::Groovy::Groovyc").groovy = '1.6.0'
#artifact_ns["Buildr::Groovy::Groovyc"].groovy = '1.6.0'
#artifact_ns :groovy => '1.6.0'
#artifact_ns.use :groovy => '1.6.0'
require 'buildr/groovy'
#artifact_ns("Buildr::Compiler::Groovyc").groovy = '1.6.0'
#artifact_ns["Buildr::Compiler::Groovyc"].groovy = '1.6.0'
#artifact_ns("Buildr::Groovy::Groovyc").groovy = '1.6.0'
#artifact_ns["Buildr::Groovy::Groovyc"].groovy = '1.6.0'
and here is my build.yaml:
artifacts:
groovy: org.codehaus.groovy:groovy-all:jar:1.6
Any help would be greatly appreciated.
Thanks,
Jon
Re: groovy compiler version
Posted by Jon Barksdale <jo...@gmail.com>.
Alex,
That worked, thanks a lot. I was trying to use the groovy-all jar instead
of just groovy, aside from just doing it plain wrong :)
I would ask for the details as to why, but I'll save that as a homework
assignment for myself and try to figure it out first.
Thanks again,
Jon
On Thu, Apr 2, 2009 at 2:38 PM, Alex Boisvert <bo...@intalio.com> wrote:
> Try,
>
> artifact_ns['org.codehaus.groovy:groovy:jar'] =
> 'org.codehaus.groovy:groovy:jar:1.6.0'
>
> before:
>
> require "buildr/groovy"
>
> alex
>
> On Thu, Apr 2, 2009 at 11:28 AM, Jon Barksdale <jon.barksdale@gmail.com
> >wrote:
>
> > Hi,
> > I have recently been experimenting with buildr, and I can't for the life
> of
> > me figure out how to get the groovy compiler to use groovy 1.6.0. This
> is
> > probably because my ruby foo is weak, but I've tried everything I've seen
> > in
> > the documentation, both on the site and in the code around the groovy
> > module, and I'm still missing it. Could anyone help point me in the
> right
> > direction?
> >
> > Here is the top of my buildfile (the commented out parts are things that
> > I've tried, no luck):
> > require 'buildr'
> > #artifact_ns("Buildr::Compiler::Groovyc").groovy = '1.6.0'
> > #artifact_ns["Buildr::Compiler::Groovyc"].groovy = '1.6.0'
> > #artifact_ns("Buildr::Groovy::Groovyc").groovy = '1.6.0'
> > #artifact_ns["Buildr::Groovy::Groovyc"].groovy = '1.6.0'
> > #artifact_ns :groovy => '1.6.0'
> > #artifact_ns.use :groovy => '1.6.0'
> > require 'buildr/groovy'
> > #artifact_ns("Buildr::Compiler::Groovyc").groovy = '1.6.0'
> > #artifact_ns["Buildr::Compiler::Groovyc"].groovy = '1.6.0'
> > #artifact_ns("Buildr::Groovy::Groovyc").groovy = '1.6.0'
> > #artifact_ns["Buildr::Groovy::Groovyc"].groovy = '1.6.0'
> >
> >
> > and here is my build.yaml:
> >
> > artifacts:
> > groovy: org.codehaus.groovy:groovy-all:jar:1.6
> >
> >
> > Any help would be greatly appreciated.
> >
> > Thanks,
> >
> > Jon
> >
>
Re: groovy compiler version
Posted by Alex Boisvert <bo...@intalio.com>.
Try,
artifact_ns['org.codehaus.groovy:groovy:jar'] =
'org.codehaus.groovy:groovy:jar:1.6.0'
before:
require "buildr/groovy"
alex
On Thu, Apr 2, 2009 at 11:28 AM, Jon Barksdale <jo...@gmail.com>wrote:
> Hi,
> I have recently been experimenting with buildr, and I can't for the life of
> me figure out how to get the groovy compiler to use groovy 1.6.0. This is
> probably because my ruby foo is weak, but I've tried everything I've seen
> in
> the documentation, both on the site and in the code around the groovy
> module, and I'm still missing it. Could anyone help point me in the right
> direction?
>
> Here is the top of my buildfile (the commented out parts are things that
> I've tried, no luck):
> require 'buildr'
> #artifact_ns("Buildr::Compiler::Groovyc").groovy = '1.6.0'
> #artifact_ns["Buildr::Compiler::Groovyc"].groovy = '1.6.0'
> #artifact_ns("Buildr::Groovy::Groovyc").groovy = '1.6.0'
> #artifact_ns["Buildr::Groovy::Groovyc"].groovy = '1.6.0'
> #artifact_ns :groovy => '1.6.0'
> #artifact_ns.use :groovy => '1.6.0'
> require 'buildr/groovy'
> #artifact_ns("Buildr::Compiler::Groovyc").groovy = '1.6.0'
> #artifact_ns["Buildr::Compiler::Groovyc"].groovy = '1.6.0'
> #artifact_ns("Buildr::Groovy::Groovyc").groovy = '1.6.0'
> #artifact_ns["Buildr::Groovy::Groovyc"].groovy = '1.6.0'
>
>
> and here is my build.yaml:
>
> artifacts:
> groovy: org.codehaus.groovy:groovy-all:jar:1.6
>
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Jon
>