xref: /aosp_15_r20/external/lottie/deploy_snapshot.sh (revision bb5273fecd5c61b9ace70f9ff4fcd88f0e12e3f7)
1*bb5273feSAndroid Build Coastguard Worker#!/bin/bash
2*bb5273feSAndroid Build Coastguard Worker#
3*bb5273feSAndroid Build Coastguard Worker# Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo.
4*bb5273feSAndroid Build Coastguard Worker#
5*bb5273feSAndroid Build Coastguard Worker# Adapted from https://coderwall.com/p/9b_lfq and
6*bb5273feSAndroid Build Coastguard Worker# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/
7*bb5273feSAndroid Build Coastguard Worker
8*bb5273feSAndroid Build Coastguard Workerset -e
9*bb5273feSAndroid Build Coastguard Worker
10*bb5273feSAndroid Build Coastguard Worker./gradlew publish -PmavenCentralUsername="${SONATYPE_USERNAME}" -PmavenCentralPassword="${SONATYPE_PASSWORD}"
11