org.hl7.fhir.core/release.bat

45 lines
1.6 KiB
Batchfile
Raw Normal View History

2019-03-15 14:26:38 -04:00
REM replace versions before running
REM make sure you are committed
echo ===============================================================
echo upgrade and release fhir.core from 3.7.15-SNAPSHOT to 3.7.16-SNAPSHOT
echo ===============================================================
pause
call mvn versions:set -DnewVersion=3.7.16-SNAPSHOT
echo
echo ===============================================================
echo upgraded version number using maven
echo next: do git commit / push
echo ===============================================================
pause
call git commit -a -m "Release new version"
call git push origin master
echo
echo ===============================================================
echo done git commit / push
echo next: replace references in java code + ivy
echo ===============================================================
pause
call "C:\tools\fnr.exe" --cl --dir "C:\work\org.hl7.fhir\build" --fileMask "*.java" --excludeFileMask "*.dll, *.exe" --includeSubDirectories --find "3.7.15-SNAPSHOT" --replace "3.7.16-SNAPSHOT"
call "C:\tools\fnr.exe" --cl --dir "C:\work\org.hl7.fhir\build" --fileMask "*.xml" --excludeFileMask "*.dll, *.exe" --find "3.7.15-SNAPSHOT" --replace "3.7.16-SNAPSHOT"
echo
echo ===============================================================
echo done replacing references
echo next: do maven release
echo ===============================================================
pause
call mvn deploy
echo
echo ===============================================================
echo all done
echo ===============================================================
pause