Results 1 to 3 of 3

Thread: Gradle build errors

Hybrid View

  1. #1

    Default Gradle build errors

    Using gradle-1.0-milestone-4 when i try to build spring security after cloning from http://git.springsource.org/spring-security
    I get the following errors;

    :buildSrc:clean
    :buildSrc:compileJava UP-TO-DATE
    :buildSrc:compileGroovy
    org.codehaus.groovy.control.MultipleCompilationErr orsException: startup failed:
    ~/spring-security/buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy: 15: unable to resolve class org.gradle.tooling.model.ProjectDependency
    @ line 15, column 1.
    import org.gradle.tooling.model.ProjectDependency
    ^

    ~/spring-security/buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy: 14: unable to resolve class org.gradle.plugins.ide.eclipse.model.BuildCommand
    @ line 14, column 1.
    import org.gradle.plugins.ide.eclipse.model.BuildCommand
    ^

    ~/spring-security/buildSrc/src/main/groovy/aspectj/AspectJPlugin.groovy: 8: unable to resolve class org.gradle.api.tasks.SourceSet
    @ line 8, column 1.
    import org.gradle.api.tasks.SourceSet
    ^

    I checked gradle plugins directory and it does contain gradle-plugins-1.0-milestone-4.jar in (lib/plugins). Not sure why the classes are not being resolved.


    Any pointers ?

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    We haven't updated the build to use gradle 1.0-M4 yet and there are one or two API changes. Use the supplied gradle wrapper (./gradlew) or M3.
    Spring - by Pivotal
    twitter @tekul

  3. #3

    Default

    Yes that did it.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •