Giter VIP home page Giter VIP logo

Comments (6)

bmuschko avatar bmuschko commented on July 17, 2024

You'd have to give more information to allow me to identify your issue.

  • Are you executing the listing with the provided Wrapper checked into the source code repository?
  • What task are you executing?

I don't get this error when using the checked-in Wrapper.

from gradle-in-action-source.

zaze8736 avatar zaze8736 commented on July 17, 2024

I found the property named conventionMapping in ConventionTask witch extends DefaultTask. Why the property can use in the CloudBeesTask?

from gradle-in-action-source.

bmuschko avatar bmuschko commented on July 17, 2024

There's some internal magic going on in DefaultTask that makes it available. It's not directly visible from the API. That's not your problem though. If you can, please provide answers to my questions and we can go from there.

from gradle-in-action-source.

zaze8736 avatar zaze8736 commented on July 17, 2024

I change gradle version from 1.7 to 2.2.1, and just run gradle using command line

from gradle-in-action-source.

bmuschko avatar bmuschko commented on July 17, 2024

The code examples might not be compatible with newer versions of Gradle. What I am seeing with Gradle 2.2.1 is the following error message:

Could not instantiate global transform class org.spockframework.compiler.SpockTransform specified at jar:file:/Users/bmuschko/.gradle/caches/modules-2/files-2.1/org.spockframework/spock-core/0.6-groovy-1.8/5c1bfb5058c3659ddc206052601704ccd30133a5/spock-core-0.6-groovy-1.8.jar!/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception org.spockframework.util.IncompatibleGroovyVersionException: The Spock compiler plugin cannot execute because Spock 0.6.0-groovy-1.8 is not compatible with Groovy 2.3.6. For more information, see http://versioninfo.spockframework.org Spock location: file:/Users/bmuschko/.gradle/caches/modules-2/files-2.1/org.spockframework/spock-core/0.6-groovy-1.8/5c1bfb5058c3659ddc206052601704ccd30133a5/spock-core-0.6-groovy-1.8.jar Groovy location: file:/Users/bmuschko/dev/tools/gradle-2.2.1/lib/groovy-all-2.3.6.jar

This indicates that the version of Spock used in buildSrc is not compatible with the version of Groovy bundled with Gradle anymore. If you want to go ahead and use a newer version of Gradle, you'd need to upgrade Spock.

from gradle-in-action-source.

zaze8736 avatar zaze8736 commented on July 17, 2024

Thanks, I got it.

from gradle-in-action-source.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.