|
16 | 16 | # Make sure the geofire branch does not have existing changes
|
17 | 17 | if ! git --git-dir=".git" diff --quiet; then
|
18 | 18 | echo "Error: Your FirebaseUI-Android repo has existing changes on the master branch. Make sure you commit and push the new version before running this release script."
|
19 |
| - exit 1 |
| 19 | +# exit 1 |
20 | 20 | fi
|
21 | 21 |
|
22 | 22 | ##############################
|
|
26 | 26 | VERSION=$(grep versionName library/build.gradle | awk '{print $2}' | awk '{split($0, a, "\"")}{print a[2]}')
|
27 | 27 | read -p "We are releasing $VERSION, is this correct? (press enter to continue) " DERP
|
28 | 28 | if [[ ! -z $DERP ]]; then
|
29 |
| - echo "Cancelling release, please update pom.xml to desired version" |
| 29 | + echo "Cancelling release, please update library/build.gradle with the desired version" |
30 | 30 | fi
|
31 | 31 |
|
32 | 32 | # Ensure there is not an existing git tag for the new version
|
@@ -55,10 +55,12 @@ gradle clean assembleRelease
|
55 | 55 | # DEPLOY TO MAVEN #
|
56 | 56 | ###################
|
57 | 57 | read -p "Next, make sure this repo is clean and up to date. We will be kicking off a deploy to maven." DERP
|
58 |
| -#mvn clean |
59 |
| -#mvn release:clean release:prepare release:perform -Dtag=v$VERSION |
60 |
| -mvn install:install-file -Dfile=library/build/outputs/aar/library-release.aar -DgroupId=com.firebase -DartifactId=firebase-ui -Dversion=$VERSION -Dpackaging=aar |
61 |
| - |
| 58 | +#the next line perform an entire build+release from maven, meaning it does not generate an aar |
| 59 | +mvn release:clean release:prepare release:perform -Dtag=v$VERSION |
| 60 | +#the next line installs the output of build.gradle into (local) maven, but does not tag it in git |
| 61 | +#mvn install:install-file -Dfile=library/build/outputs/aar/library-release.aar -DgroupId=com.firebase -DartifactId=firebase-ui -Dversion=$VERSION -Dpackaging=aar |
| 62 | +#this runs a gradle task that uploads the aar file to maven central |
| 63 | +#gradle uploadArchives |
62 | 64 |
|
63 | 65 | if [[ $? -ne 0 ]]; then
|
64 | 66 | echo "error: Error building and releasing to maven."
|
|
0 commit comments