forked from http4k/http4k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
delete_version.sh
executable file
·52 lines (45 loc) · 1.51 KB
/
delete_version.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
set -e
set -o errexit
set -o pipefail
set -o nounset
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LOCAL_VERSION=$1
function maven_publish {
local PACKAGE=$1
echo "Deleting $PACKAGE..."
RESULT=$(curl -s -X DELETE -u "$BINTRAY_USER:$BINTRAY_KEY" "https://api.bintray.com/packages/http4k/maven/$PACKAGE/versions/$LOCAL_VERSION")
if [[ ! "${RESULT}" =~ .*success.* ]]; then
echo "Failed: ${RESULT}"
exit 1
fi
}
echo "Deleting $LOCAL_VERSION..."
maven_publish "http4k-aws"
maven_publish "http4k-core"
maven_publish "http4k-contract"
maven_publish "http4k-template-dust"
maven_publish "http4k-template-handlebars"
maven_publish "http4k-template-pebble"
maven_publish "http4k-template-thymeleaf"
maven_publish "http4k-client-apache"
maven_publish "http4k-client-apache-async"
maven_publish "http4k-client-jetty"
maven_publish "http4k-client-okhttp"
maven_publish "http4k-client-websocket"
maven_publish "http4k-format-argo"
maven_publish "http4k-format-gson"
maven_publish "http4k-format-jackson"
maven_publish "http4k-format-moshi"
maven_publish "http4k-format-xml"
maven_publish "http4k-metrics-micrometer"
maven_publish "http4k-multipart"
maven_publish "http4k-resilience4j"
maven_publish "http4k-security-oauth"
maven_publish "http4k-server-apache"
maven_publish "http4k-server-jetty"
maven_publish "http4k-server-netty"
maven_publish "http4k-server-undertow"
maven_publish "http4k-serverless-lambda"
maven_publish "http4k-testing-hamkrest"
maven_publish "http4k-testing-webdriver"