Stack_IQ
Stack_IQ

Reputation: 624

calling pom from build.gradle

I have an existing pom.xml which I want my build.gradle should call while running gradle build. The pom.xml and build.gradle are at the same location. Which gradle task can help me doing this?

Upvotes: 2

Views: 609

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123976

task runMavenBuild(type: Exec) {
    executable = "mvn" // must reside on PATH
    args "install"
}

Upvotes: 2

Related Questions