45 lines
1.6 KiB
Batchfile
45 lines
1.6 KiB
Batchfile
|
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
|
||
|
|