mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
98ee724ec6
This commit reworks the CI pipeline to remove the use of Bintray for publishing to Maven Central. In its place it adds a new publishToCentral command to the release scripts. This command can be used to publish a directory tree of artifacts to the Maven Central gateway hosted by Sonatype. Publishing consists of 4 steps: 1. Create the staging repository 2. Deploy artifacts to the repository 3. Close the repository 4. Release the repository The command requires 3 arguments: 1. The type of release being performed 2. Location of a build info JSON file that describes the release that is to be deployed 3. Root of a directory structure, in Maven repository layout, that contains the artifacts to be deployed Closes gh-25107
18 lines
314 B
YAML
18 lines
314 B
YAML
---
|
|
platform: linux
|
|
inputs:
|
|
- name: git-repo
|
|
- name: artifactory-repo
|
|
outputs:
|
|
- name: version
|
|
params:
|
|
RELEASE_TYPE:
|
|
ARTIFACTORY_SERVER:
|
|
ARTIFACTORY_USERNAME:
|
|
ARTIFACTORY_PASSWORD:
|
|
SONATYPE_USER_TOKEN:
|
|
SONATYPE_PASSWORD_TOKEN:
|
|
SONATYPE_STAGING_PROFILE_ID:
|
|
run:
|
|
path: git-repo/ci/scripts/promote.sh
|