forked from Tinder/Scarlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sh
executable file
·39 lines (22 loc) · 1.77 KB
/
publish.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
#!/usr/bin/env bash
[ -z "$BUILD_NUMBER" ] && echo "Build Number must be set as an environment variable" && exit 1;
[ -z "$ARTIFACTORY_USER" ] && echo "Artifactory User must be set as an environment variable" && exit 1;
[ -z "$ARTIFACTORY_PASSWORD" ] && echo "Artifactory Password must be set as an environment variable" && exit 1;
./gradlew clean
./gradlew scarlet-core:build scarlet-core:artifactoryPublish
./gradlew scarlet-core-internal:build scarlet-core-internal:artifactoryPublish
./gradlew state-machine:build state-machine:artifactoryPublish
./gradlew scarlet:build scarlet:artifactoryPublish
./gradlew scarlet-test-utils:build scarlet-test-utils:artifactoryPublish
./gradlew scarlet-message-adapter-builtin:build scarlet-message-adapter-builtin:artifactoryPublish
./gradlew scarlet-message-adapter-gson:build scarlet-message-adapter-gson:artifactoryPublish
./gradlew scarlet-message-adapter-moshi:build scarlet-message-adapter-moshi:artifactoryPublish
./gradlew scarlet-message-adapter-protobuf:build scarlet-message-adapter-protobuf:artifactoryPublish
./gradlew scarlet-stream-adapter-builtin:build scarlet-stream-adapter-builtin:artifactoryPublish
./gradlew scarlet-stream-adapter-rxjava:build scarlet-stream-adapter-rxjava:artifactoryPublish
./gradlew scarlet-stream-adapter-rxjava2:build scarlet-stream-adapter-rxjava2:artifactoryPublish
./gradlew scarlet-stream-adapter-coroutines:build scarlet-stream-adapter-coroutines:artifactoryPublish
./gradlew scarlet-websocket-okhttp:build scarlet-websocket-okhttp:artifactoryPublish
./gradlew scarlet-websocket-mockwebserver:build scarlet-websocket-mockwebserver:artifactoryPublish
./gradlew scarlet-lifecycle-android:assemble scarlet-lifecycle-android:generatePomFileForAarPublication
./gradlew scarlet-lifecycle-android:artifactoryPublish