2019-05-21 10:39:51 +10:00
@ echo off
2019-06-19 06:40:36 +10:00
2020-06-07 08:42:14 +10:00
set oldver = 5.0.6
set newver = 5.0.7
2019-06-19 06:40:36 +10:00
2019-05-22 11:13:47 +10:00
echo ..
2020-02-18 14:31:09 +11:00
echo =========================================================================
2019-06-19 06:40:36 +10:00
echo upgrade and release fhir.core from %oldver% -SNAPSHOT to %newver% -SNAPSHOT
2020-02-18 14:31:09 +11:00
echo =========================================================================
2019-05-22 11:13:47 +10:00
echo ..
2019-03-16 05:26:38 +11:00
2019-06-19 06:40:36 +10:00
call mvn versions:set -DnewVersion=%newver% -SNAPSHOT
2019-12-04 05:59:22 +11:00
2019-12-03 15:26:06 +11:00
call " C:\tools\fnr.exe " -dir " C:\work\org.hl7.fhir\build " -fileMask " *.xml " -find " %oldver% -SNAPSHOT " -replace " %newver% -SNAPSHOT " -count 8
call " C:\tools\fnr.exe " -dir " C:\work\org.hl7.fhir\fhir-ig-publisher " -fileMask " *.xml " -find " %oldver% -SNAPSHOT " -replace " %newver% -SNAPSHOT " -count 2
call " C:\tools\fnr.exe " -dir " C:\work\org.hl7.fhir\latest-ig-publisher " -fileMask " *.html " -find " %oldver% " -replace " %newver% " -count 1
call " C:\tools\fnr.exe " -dir " C:\work\org.hl7.fhir\latest-ig-publisher " -fileMask " *.json " -find " %oldver% " -replace " %newver% " -count 1
2020-05-30 10:22:39 +10:00
call mvn clean deploy -Dmaven.test.redirectTestOutputToFile=false -DdeployAtEnd=true
2019-09-15 02:35:50 +10:00
IF %ERRORLEVEL% NEQ 0 (
GOTO DONE
)
2020-05-06 11:16:01 +10:00
call " C:\tools\versionNotes.exe " -fileName C:\work\org.hl7.fhir\org.hl7.fhir.core\release-notes-validator.md -version %newver% -fileDest C:\temp\current-release-notes-validator.md -url https://storage.googleapis.com/ig-build/org.hl7.fhir.validator.jar -maven https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots& g=ca.uhn.hapi.fhir& a=org.hl7.fhir.validation.cli& v=%newver% -SNAPSHOT& e=jar
2020-04-29 14:57:18 +10:00
2020-05-06 12:17:08 +10:00
call git commit -t v%newver% -a -m " Release new version %newver% "
call git tag v%newver%
call git push origin master
2020-04-29 14:57:18 +10:00
call gsutil cp -a public-read org.hl7.fhir.validation.cli\target\org.hl7.fhir.validation.cli-%newver% -SNAPSHOT.jar gs://ig-build/org.hl7.fhir.validator.jar
2020-02-09 08:14:30 +11:00
2019-05-22 11:45:02 +10:00
cd ..\latest-ig-publisher
2020-04-29 14:57:18 +10:00
call git commit -a -m " Release new validator version %newver% -SNAPSHOT "
2019-05-22 11:45:02 +10:00
call git push origin master
2019-05-23 13:39:21 +10:00
cd ..\org.hl7.fhir.core
2019-12-20 08:01:46 +11:00
2020-04-29 14:57:18 +10:00
call python c:\tools\zulip-api\zulip\zulip\send.py --stream committers/notification --subject " java core " -m " New Java Core v %newver% -SNAPSHOT released. New Validator at https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=ca.uhn.hapi.fhir&a=org.hl7.fhir.validation.cli&v= %newver% -SNAPSHOT&e=jar, and also deployed at https://storage.googleapis.com/ig-build/org.hl7.fhir.validator.jar " --config-file zuliprc
2020-02-09 08:14:30 +11:00
call python c:\tools\zulip-api\zulip\zulip\send.py --stream tooling/releases --subject " Validator " --config-file zuliprc < C:\temp\current-release-notes-validator.md
del C:\temp\current-release-notes-validator.md
2019-09-15 02:35:50 +10:00
: DONE
2019-03-16 05:26:38 +11:00
echo ===============================================================
echo all done
echo ===============================================================
pause