add js versioning to release-candidate git script
@@ -11,6 +11,11 @@ RELEASE_VERSION=$1
set -x
+setVersion() {
+ mvn versions:set versions:update-child-modules -DgenerateBackupPoms=false -DnewVersion=$1
+ find ui -name package.json -a \! -path '*node_modules*' -exec sed -i '' "s/\"version\": \"[0-9.A-Z-]*\"/\"version\": \"$1\"/" {} \;
+ sed -i '' "s/\"\?ver=[0-9.A-Z-]*\"/\"?ver=$1\"/" ui/ui-app/src/main/resources/static/js/systemjs.config.js
+}
################
## Master branch
@@ -20,7 +25,9 @@ git checkout master
git pull
git checkout -b release-candidate-$RELEASE_VERSION
-mvn versions:set versions:update-child-modules -DgenerateBackupPoms=false -DnewVersion=$RELEASE_VERSION
+###mvn versions:set versions:update-child-modules -DgenerateBackupPoms=false -DnewVersion=$RELEASE_VERSION
+
+setVersion ${RELEASE_VERSION}
git commit -a -m "Release $RELEASE_VERSION"
