Issue
I'm writing a Gradle plugin in Java. In order to use the IDE for developing (especially code completion), I need to add to the pom.xml
file of the project the dependency information for the org.gradle.api.*
classes.
Where can I find it?
I tried mvnrepository.com, but couldn't find it there.
Solution
I found this artifact after a longer search: https://mvnrepository.com/artifact/org.gradle/gradle-core/2.2.1
<dependency>
<groupId>org.gradle</groupId>
<artifactId>gradle-core</artifactId>
<version>2.2.1</version>
</dependency>
The artifact is available in following repository: http://repo.springsource.org/libs-release-remote/
<repository>
<id>Spring Source Libs</id>
<url>http://repo.springsource.org/libs-release-remote/</url>
</repository>
Add the repository to the repositories section in your pom.xml as well as the artifact as dependency. I tested it with a Maven project in my Eclipse workspace - the org.gradle.api.* classes are available and I can also browse the gradle-core sources.
Answered By - gclaussn