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 deployon the maven root pom, this do not use the regular deploy plugin for each modules, but is usingnexus-staging-maven-pluginthat put each artefacts under<repo>/target/nexus-staging/deferred/. As final step of the build, this folder gets uploaded. - Call
.gradlew uploadArchivesthat uploads theopenapi-generator-gradle-pluginto the distant maven repository.
Related PR where this deferred folder is explained : #366
NEW WORKFLOW
- Call
mvn clean installto build all the maven modules and to install them in the local maven repository. - The
uploadArchivesgradle task is modified to publish the gradle plugin into<repo>/target/nexus-staging/deferred/. - Call
mvn deployto publish each artefacts to thedeferredfolder. The final step will synchronise all artefacts present in this folder (in particular also the gradle plugin created at step 2).