Johnny,

I'm afraid I don't have an answer (yet) as to why you are not getting
joint compilation, but I wanted to chip in that Gant builds fine using
Gradle, and Gant critically depends on the use of the joint compiler.
So we know that Gradle does use the joint compilation with the Groovy
plugin.

Can you send in the output from a "gradle -i <target>" so that we can
see a record of what is happening when this Gradle file is used. 

On Wed, 2009-03-18 at 09:56 +0800, Johnny Jian wrote:
> I did use the groovy plugin. Here is my build.gradle file:
> 
> usePlugin('groovy')
> 
> sourceCompatibility = 1.5
> targetCompatibility = 1.5
> 
> dependencies {
>     addMavenRepo()
>     groovy "org.codehaus.groovy:groovy-all:1.5.6"
>     compile "junit:junit:4.5"
>     compile "cglib:cglib:2.2"
>     compile "org.objenesis:objenesis:1.1"
>     testCompile "org.hamcrest:hamcrest-library:1.1"
> }
> 
> 
> On Wed, Mar 18, 2009 at 1:08 AM, Tom Eyckmans <[email protected]>
> wrote:
>         Hi,
>         
>         You should use the groovy plugin instead of the java plugin,
>         the groovy plugin compiles both java and groovy code.
>         
>         Userdoc of the groovy plugin:
>         http://www.gradle.org/userguide/0.5.2/userguidech11.html#x31-6900011.
>         
>         Thx,
>         
>         Tom
>         
>         2009/3/17 Johnny Jian <[email protected]>
>         
>                 Hi,
>                 
>                 I got compilation errors of my Java code while the
>                 Java code depends on the Groovy code. I wonder whether
>                 gradle has joint compilation, or is there a switch?
>                 
>                 Johnny
>         
> 
-- 
Russel.
============================================================
Dr Russel Winder                 Partner

Concertant LLP          t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,     f: +44 8700 516 084    voip:  
sip:[email protected]
London SW11 1EN, UK.    m: +44 7770 465 077    xmpp: [email protected]

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to