Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !902

[CI] Change the way gradle uploadArchives works

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/jmini/gradle_push into master Aug 27, 2018
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

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:

  1. Call mvn clean deploy on the maven root pom, this do not use the regular deploy plugin for each modules, but is using nexus-staging-maven-plugin that put each artefacts under <repo>/target/nexus-staging/deferred/. As final step of the build, this folder gets uploaded.
  2. Call .gradlew uploadArchives that uploads the openapi-generator-gradle-plugin to the distant maven repository.

Related PR where this deferred folder is explained : #366

NEW WORKFLOW

  1. Call mvn clean install to build all the maven modules and to install them in the local maven repository.
  2. The uploadArchives gradle task is modified to publish the gradle plugin into <repo>/target/nexus-staging/deferred/.
  3. Call mvn deploy to publish each artefacts to the deferred folder. The final step will synchronise all artefacts present in this folder (in particular also the gradle plugin created at step 2).
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/jmini/gradle_push