Skip to content

Commit 4e52d7d

Browse files
committed
Also push JavaDoc to Maven Central, remove version number from POM
Since the release.sh grabs it from the build.gradle and passes it to mvn
1 parent 14a233b commit 4e52d7d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

library/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<name>FirebaseUI-Android</name>
77
<description>FirebaseUI library for Android applications</description>
88
<url>https://github.com/firebase/FirebaseUI-Android</url>
9-
<version>0.2.0</version>
109
<packaging>aar</packaging>
1110
<scm>
1211
<url>scm:[email protected]/firebase/FirebaseUI-Android</url>

release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ gradle clean :app:compileDebugSources :app:compileDebugAndroidTestSources :libra
5454
# DEPLOY TO MAVEN #
5555
###################
5656
read -p "Next, make sure this repo is clean and up to date. We will be kicking off a deploy to maven." DERP
57+
5758
#the next line installs the output of build.gradle into (local) maven, but does not tag it in git
5859
#mvn install:install-file -Dfile=library/build/outputs/aar/library-release.aar -DgroupId=com.firebase -DartifactId=firebase-ui -Dversion=$VERSION -Dpackaging=aar
60+
5961
#the next line signs and deploys the aar file to maven
60-
#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-debug.aar -Dversion=$VERSION
62+
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-debug.aar -Djavadoc=library/build/outputs/library-javadoc.jar -Dversion=$VERSION
6163

6264
if [[ $? -ne 0 ]]; then
6365
echo "error: Error building and releasing to maven."

0 commit comments

Comments
 (0)