Created by: jmini
As described in #411 the deployment of the openapi-generator-gradle-plugin
artefact is always an issue during the release.
This PR changes the way the openapi-generator-gradle-plugin
is deployed (uploadArchives
)
PREVIOUS WORKFLOW:
- Call
mvn clean deploy
on the maven root pom, this do not use the regular deploy plugin for each modules, but is usingnexus-staging-maven-plugin
that put each artefacts under<repo>/target/nexus-staging/deferred/
. As final step of the build, this folder gets uploaded. - Call
.gradlew uploadArchives
that uploads theopenapi-generator-gradle-plugin
to the distant maven repository.
Related PR where this deferred
folder is explained : #366
NEW WORKFLOW
- Call
mvn clean install
to build all the maven modules and to install them in the local maven repository. - The
uploadArchives
gradle task is modified to publish the gradle plugin into<repo>/target/nexus-staging/deferred/
. - Call
mvn deploy
to publish each artefacts to thedeferred
folder. The final step will synchronise all artefacts present in this folder (in particular also the gradle plugin created at step 2).