I know that this might seem unusual, but can you manage a Gradle plugin project with Maven? Basically, I implemented a Gradle plugin for an existing framework which currently uses Maven builds, and the initial build.gradle I created should be translated to pom.xml. I’m asking this because I can’t seem to find equivalent for compile gradleApi(), which includes local libraries as dependencies (absent in Maven Central).
Does anyone had a similar problem and can provide a minimal pom.xml example?
I think it would be better to fully migrate the build to Maven, as the project itself doesn’t invoke or require any specific Gradle tasks. (Unless Gradle does something with the jar other than validation when it detects defined Gradle plugins in resources.) A simple mvn install would be enough, which basically matches gradle build install or gradle uploadArchives, AFAIK.
At this time not all of the Gradle API JARs are published to a public Maven repository. This might change in the future though. As a result you won’t be able to declare the Gradle API dependencies in a Maven build.