Comments (6)
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.
I found the property named conventionMapping in ConventionTask witch extends DefaultTask. Why the property can use in the CloudBeesTask?
from gradle-in-action-source.
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.
I change gradle version from 1.7 to 2.2.1, and just run gradle using command line
from gradle-in-action-source.
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.
Thanks, I got it.
from gradle-in-action-source.
Related Issues (9)
- Test report aggregation HOT 4
- classesDir property HOT 1
- In 2022, can't get examples to work in HOT 3
- Would the book content still be useful for nowadays' software development? HOT 2
- chapter06 / listing_06_04-todo-cross-project-tasks HOT 1
- Can't get examples working HOT 4
- Why you use com.yuege.gia.todo.*? HOT 4
- gradle build failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-in-action-source.