Comments (5)
The question is whether this is a bug in the STS tooling, the gradle tooling API, the tomcat plugin or gradle itself.
The first thing to try is if you get a similar error doing the same thing on the commandline. e.g try to generate eclipse metadata on the commandline with the 'gradle eclipse' plugin by running tasks './gradlew cleanEclipse eclipse'.
While not exactly the same, this is probably the closest you can get to doing the 'build model' step in the tooling from the commandline.
from eclipse-integration-gradle.
BTW: I have hunch maybe the tomcat plugin might not be compatible with the version of Gradle you are trying to run it with. The stacktrace suggest an API incompatiblity (i.e. someone is calling a method that doesn't exist).
from eclipse-integration-gradle.
gradle cleanEclipse eclipse
works.
You're most likely correct regards Gradle version. We're using Gradle 1.6+. Some folks had an older version installed and ran into the same problem on the CLI as the Tomcat Plugin (I believe I saw it was downloading Gradle 1.5 in the Build Model step).
from eclipse-integration-gradle.
Okay, in that case I suggest you use the gradle wrapper on your project. If the wrapper properties are present. The tooling API will use the gradle version they stipulate. That way you won't have an issue with using the wrong gradle version.
The problem you are hitting is because Gradle tooling API we use is still at 1.5 you end up using 1.5 by default.
If you add the gradle wrapper and set it to use 1.6 then the tooling API will use 1.6 and the problem will go away.
It is generally a good idea to add the wrapper to your project to explicitly define what version of gradle it should use.
Otherwise you are just taking your chances with the default.
I'm closing this issue as it seems there's no bug here :-)
from eclipse-integration-gradle.
Adding a wrapper task and pointing it to 1.6 did the trick.
from eclipse-integration-gradle.
Related Issues (20)
- Could not find tools.jar HOT 1
- “refresh all” update the eclipse .project file by force
- Classpath sorting removes test folder HOT 1
- Gradle-STS-to-Buildship message HOT 2
- Fail to initialize EclipseModelBuilder in gradle 2.14.1 if "Use Custom Tooling Model" is checked. HOT 4
- Alternative Update Sites Link To AccessDenied XML HOT 1
- import Gradle project HOT 1
- Trying to import project HOT 1
- Tooling API version older than 3.0 in sts 3.9.1.201710100515-RELEASE HOT 2
- Mark Gradle's build directories as derived resources HOT 3
- http proxy Ineffective HOT 5
- ":..:DependentProject" not supported in settings.gradle HOT 1
- I don't have an extension tab HOT 2
- Gradle IDE upgrade from 3.6.4 to 3.7.0 fails for missing dependencies HOT 4
- What is the roadmap for this plugin with the presence of the BuildShip plugin? HOT 2
- Remap Jars to Gradle Projects ignores version HOT 5
- Offline installation requires HOT 4
- Gradle plugin trying to download gradle.zip from internet even though Gradle Home pointed to local folder HOT 6
- "Updating Gradle Classpath" happens during/after "Building workspace" HOT 1
- NPE during Eclipse Gradle project refresh HOT 3
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 eclipse-integration-gradle.