Skip to content

Commit f408806

Browse files
author
Daniel Mikusa
committed
Removing Bintray & using https://github.com/spring-io/concourse-release-scripts to sync with Maven central
1 parent 0c4656c commit f408806

File tree

5 files changed

+4
-42
lines changed

5 files changed

+4
-42
lines changed

ci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG base_image=ubuntu:bionic
1+
ARG base_image=openjdk:8-jre
22
FROM ${base_image}
33

44
ADD https://repo.spring.io/libs-release/io/spring/concourse/releasescripts/concourse-release-scripts/0.3.2/concourse-release-scripts-0.3.2.jar /opt/

ci/promote-to-bintray.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

ci/promote-to-bintray.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

ci/promote-to-maven-central.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
set -euo pipefail
44

5-
GROUP_ID=$(jq -r .modules[0].id build-info/build-info.json | cut -d ':' -f 1)
6-
VERSION=$(jq -r .modules[0].id build-info/build-info.json | cut -d ':' -f 3)
5+
java -jar /opt/spring-boot-release-scripts.jar publishToCentral 'RELEASE' build-info/build-info.json artifactory-repo
76

8-
## Promote to Maven Central
9-
curl --request "POST" "https://api.bintray.com/maven_central_sync/spring/jars/$GROUP_ID/versions/$VERSION" \
10-
--header "Content-Type: application/json; charset=utf-8" \
11-
--user $BINTRAY_USERNAME:$BINTRAY_API_KEY \
12-
--data "{ \"username\": \"$MAVEN_CENTRAL_USERNAME\", \"password\": \"$MAVEN_CENTRAL_PASSWORD\" }" \
13-
--fail
7+
echo "Sync complete"

ci/promote-to-maven-central.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ image_resource:
99
inputs:
1010
- name: build-info
1111
- name: cf-java-client
12+
- name: artifactory-repo
1213

1314
run:
1415
path: cf-java-client/ci/promote-to-maven-central.sh

0 commit comments

Comments
 (0)