Skip to content

Commit c6cf930

Browse files
committed
Added proper "deploy to maven" command
1 parent 8299d6c commit c6cf930

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

release.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ gradle clean :app:compileDebugSources :app:compileDebugAndroidTestSources :libra
5757
# DEPLOY TO MAVEN #
5858
###################
5959
read -p "Next, make sure this repo is clean and up to date. We will be kicking off a deploy to maven." DERP
60-
#the next line perform an entire build+release from maven, meaning it does not generate an aar
61-
mvn release:clean release:prepare release:perform -Dtag=v$VERSION
6260
#the next line installs the output of build.gradle into (local) maven, but does not tag it in git
6361
#mvn install:install-file -Dfile=library/build/outputs/aar/library-release.aar -DgroupId=com.firebase -DartifactId=firebase-ui -Dversion=$VERSION -Dpackaging=aar
64-
#this runs a gradle task that uploads the aar file to maven central
65-
#gradle uploadArchives
62+
#the next line signs and deploys the aar file to maven
63+
mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=ossrh -DpomFile=library/pom.xml -Dfile=library/build/outputs/aar/library-release.aar -Dversion=$VERSION
6664

6765
if [[ $? -ne 0 ]]; then
6866
echo "error: Error building and releasing to maven."
@@ -86,7 +84,7 @@ fi
8684

8785
echo "Manual steps:"
8886
echo " 1) release maven repo at http://oss.sonatype.org/"
89-
# echo " 2) Deploy new docs: $> firebase deploy"
87+
#echo " 2) Deploy new docs: $> firebase deploy"
9088
echo " 3) Update the release notes for FirebaseUI-Android version ${VERSION} on GitHub and add aar for downloading"
9189
#echo " 4) Update firebase-versions.json in the firebase-clients repo with the changelog information"
9290
#echo " 5) Tweet @FirebaseRelease: 'v${VERSION} of FirebaseUI-Android is available https://github.com/firebase/FirebaseUI-Android"

0 commit comments

Comments
 (0)