Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve Gradle plugin dependency?

I am trying to install Eclipse integration Gradle from

http://dist.springsource.com/release/TOOLS/gradle

in order to create LibGdx project in Eclipse.

But there is a dependency issue where I am stuck at and not able to understand the error.

Below is the error stack in eclipse while trying to install the Gradle plugin.

Software being installed: Spring UAA Integration (optional) 3.6.0.201407080544-RELEASE (org.springframework.ide.eclipse.uaa.feature.feature.group 3.6.0.201407080544-RELEASE) Missing requirement: Spring UAA Integration 3.6.0.201407080544-RELEASE (org.springframework.ide.eclipse.uaa 3.6.0.201407080544-RELEASE) requires 'package com.google.protobuf 0.0.0' but it could not be found

UPDATE:
http://dist.springsource.com/release/TOOLS/gradle (latest release) did not work.
But,
http://dist.springsource.com/milestone/TOOLS/gradle (latest milestone build) worked!

like image 243
sat Avatar asked Jul 18 '14 23:07

sat


People also ask

How do I resolve Gradle dependencies?

Given a required dependency, with a version, Gradle attempts to resolve the dependency by searching for the module the dependency points at. Each repository is inspected in order. Depending on the type of repository, Gradle looks for metadata files describing the module ( .

How do you resolve dependency?

In Java "resolving a dependency" usually refers to a library that you include (and use) in your project. When you're having "resolving issues" it's usually due to missing, incorrect or incompatible version of a library.

How do I force Gradle to use specific dependency?

If the project requires a specific version of a dependency on a configuration-level then it can be achieved by calling the method ResolutionStrategy. force(java. lang. Object[]).


1 Answers

The author has made this question easy to answer by posting the answer himself. So I will swoop in and take the easy points.

Use: http://dist.springsource.com/milestone/TOOLS/gradle (latest milestone build)

because the requirements (Spring UAA Integration 3.6.0.201407080544-RELEASE) are included in the aforementioned add-on.

http://dist.springsource.com/release/TOOLS/gradle (latest release) did not work.

because the requirements (Spring UAA Integration 3.6.0.201407080544-RELEASE) are NOT (I repeat NOT!!) included in the aforementioned add-on.

like image 55
user3882762 Avatar answered Oct 05 '22 21:10

user3882762