dkorotych / gradle-maven-exec-plugin

Gradle plugin which provides an Maven exec task
Apache License 2.0
57 stars 7 forks source link

how to invoke custom maven plugin by this gradle-maven-exec-plugin? #28

Closed fgwh closed 2 years ago

fgwh commented 4 years ago

hi , I see the useCase.gradle which can invoke maven plugin such as maven-archetype-quickstart,but don't have to configure groupId ,I don't know how to invoke custom maven plugin

wtfiwtz commented 3 years ago

Here's an example in build.gradle:

plugins {
    id 'java-library'
    id "com.github.dkorotych.gradle-maven-exec" version "2.2.1"
    id 'maven-publish'
}

task wsimport(type: MavenExec) {
    goals 'generate-sources'
}