| | |
| | | # ${project.version} release script
|
| | | #
|
| | |
|
| | | # ensure Maven repository is up-to-date
|
| | | echo ""
|
| | | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
| | | echo "Preparing Maven repository"
|
| | | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
| | | echo ""
|
| | | cd ${maven.directory}
|
| | | git checkout gh-pages
|
| | | git pull
|
| | | cd ${project.directory}
|
| | |
|
| | | # go back one commit to RELEASE commit
|
| | | echo ""
|
| | | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
| | |
| | | echo "Building ${project.version} RELEASE artifacts"
|
| | | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
| | | echo ""
|
| | | ant clean buildAll
|
| | | ant clean buildAll buildMavenArtifacts
|
| | |
|
| | | # commit all generated artifacts and metadata
|
| | | echo ""
|
| | | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
| | | echo "Committing Maven repository ${project.version} RELEASE artifacts"
|
| | | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
| | | echo ""
|
| | | cd ${maven.directory}
|
| | | git add .
|
| | | git commit -m "${project.version} artifacts"
|
| | | cd ${project.directory}
|
| | |
|
| | | # upload artifacts
|
| | | echo ""
|
| | |
| | | echo ""
|
| | | git checkout master
|
| | |
|
| | | # push Maven repository to origin
|
| | | echo ""
|
| | | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
| | | echo "Pushing Maven repository"
|
| | | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
| | | echo ""
|
| | | cd ${maven.directory}
|
| | | git push origin gh-pages
|
| | | cd ${project.directory}
|
| | |
|
| | | # push project branches
|
| | | echo ""
|
| | | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|