How can I create a Gradle plugin with Maven

It is possible to build a Gradle plugin with Maven. What dependencies are needed?

+3


source to share


1 answer


Yes it is possible. We do this with Spring Load the Gradle plugin using these dependencies:

<dependency>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy</artifactId>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.gradle</groupId>
    <artifactId>gradle-core</artifactId>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.gradle</groupId>
    <artifactId>gradle-base-services</artifactId>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.gradle</groupId>
    <artifactId>gradle-base-services-groovy</artifactId>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.gradle</groupId>
    <artifactId>gradle-plugins</artifactId>
    <scope>provided</scope>
</dependency>

      



Groovy in Maven Central, but Gradle dependencies are in their own repo: http://repo.gradle.org/gradle/libs-releases-local

+3


source







All Articles