[GRADLE-1993] REL_1.0-milestone-6 doesn't compile from Github Created: 09/Dec/11  Updated: 18/Jan/13  Resolved: 19/Feb/12

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Watkins Assignee: Unassigned
Resolution: Duplicate Votes: 0

Issue Links:
Duplicate
Duplicates GRADLE-1501 Compile task up-to-date checking is b... Resolved

 Description   

When you checkout the REL_1.0-mileston-6 tag from Github, then do './gradlew assemble', it gets a compilation error in the 'compileGroovy' task of coreImpl.

Output here:

gradle.git [(REL_1.0-milestone-6)]$ ./gradlew assemble
:buildSrc:compileJava UP-TO-DATE

[lots of UP-TO-DATE sections skipped for brevity]

:codeQuality:jar UP-TO-DATE
:coreImpl:classpathManifest UP-TO-DATE
:coreImpl:compileJava UP-TO-DATE
:coreImpl:compileGroovy
[ant:groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[ant:groovyc] Compile error during compilation with javac.
[ant:groovyc] /Users/robertdw/tmp/gradle.git/gradle.git/subprojects/core-impl/src/main/groovy/org/gradle/api/internal/artifacts/DefaultDependencyManagementServices.java:116: cannot find symbol
[ant:groovyc] symbol : constructor DefaultDependencyFactory(java.util.Set<org.gradle.api.internal.artifacts.dsl.dependencies.IDependencyImplementationFactory>,org.gradle.api.internal.artifacts.dsl.dependencies.DefaultClientModuleFactory,org.gradle.api.internal.artifacts.dsl.dependencies.DefaultProjectDependencyFactory)
[ant:groovyc] location: class org.gradle.api.internal.artifacts.DefaultDependencyFactory
[ant:groovyc] return new DefaultDependencyFactory(
[ant:groovyc] ^

[bunch of warnings about unchecked casts deleted for brevity]

[ant:groovyc] Note: Some input files use or override a deprecated API.
[ant:groovyc] Note: Recompile with -Xlint:deprecation for details.
[ant:groovyc] 1 error
[ant:groovyc] 7 warnings
[ant:groovyc]
[ant:groovyc]
[ant:groovyc] 1 error
[ant:groovyc]

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':coreImpl:compileGroovy'.
    Cause: Forked groovyc returned error code: 1
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED



 Comments   
Comment by Adam Murdoch [ 11/Dec/11 ]

I suspect you're running into GRADLE-1501. Could you try ./gradlew clean assemble?

Comment by Robert Watkins [ 11/Dec/11 ]

That gave me a different error - not being able to find the spock imports for the 'buildSrc' module (during the clean phase?? Why is it trying to compile during clean?). That in turn may have had something to do with the fact that the spock dependency was on a SNAPSHOT version.

I resolved that one by deleting my ~/.gradle directory - I suspect that there was something cached there.

Allright - nothing to see here.

Comment by Adam Murdoch [ 12/Dec/11 ]

Can I close this, then?

Generated at Wed Jun 30 12:09:53 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.