Adam Murdoch wrote:
>
>
> Steve Appling wrote:
>> I am still having some problems related (I think) to the
>> unmanagedClasspath changes. I can't get our buildSrc to work now.
>> Previously we had to do the following in the buildSrc/build.gradle:
>> compile.groovyClasspath = org.gradle.util.BootstrapUtil.groovyFiles
>> testCompile.groovyClasspath = org.gradle.util.BootstrapUtil.groovyFiles
>>
>> compile.unmanagedClasspath(org.gradle.util.BootstrapUtil.gradleClasspath
>> as File[])
>>
>> I have tried several combinations to get this working, but still can't
>> get the gradle files on the classpath in buildsrc. I get errors like
>> "unable to resolve class org.gradle.api.Project".
>>
>> I am currently just trying to add the gradle files to the compile
>> classpath using:
>> dependencies {
>> compile files(org.gradle.util.BootstrapUtil.gradleClasspath)
>> }
>>
>> This still doesn't work - I would appreciate any other ideas to try.
>> Perhaps this will make more sense on Monday :)
>>
>>
>
> This is from the default buildSrc build script, which should work for you:
>
> dependencies {
> compile files(org.gradle.util.BootstrapUtil.gradleClasspath)
> groovy files(org.gradle.util.BootstrapUtil.groovyFiles)
> }
>
>
> It looks very similar to what you are trying, so I'm not confident. If
> you are still getting failures, can you try again with the -s flag, so
> we can see where the failure is?
>
>
> Adam
With
compile files(org.gradle.util.BootstrapUtil.gradleClasspath)
groovy files(org.gradle.util.BootstrapUtil.groovyFiles)
I get
java.lang.NoClassDefFoundError: org/codehaus/groovy/ant/Groovyc
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.ant.Groovyc
If I change the groovy dependency to:
groovy 'org.codehaus.groovy:groovy-all:1.5.6'
it then finds groovyc, but I get lots of errors like:
C:\Working\ALC\SCC\webctrl\main\exp\modularization_prep\modules\buildSrc\src\main\groovy\tasks\Doc.groovy:
36: unable to resolve class org.gradle.api.Project
--
Steve Appling
Automated Logic Research Team
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email