version.cmd 474 B

1234567891011121314
  1. @echo off
  2. for /F "eol=; tokens=2,2 delims==" %%i in ('findstr /i "info.app.version=" dbsyncer-web\src\main\resources\application.properties') DO set APP_VERSION=%%i
  3. echo %APP_VERSION%
  4. echo "Clean Project ..."
  5. call mvn clean -f pom.xml
  6. echo "Update version ..."
  7. call mvn versions:set -DnewVersion=%APP_VERSION% -DprocessAllModules=true -DallowSnapshots=true -DgenerateBackupPoms=false
  8. call mvn -N versions:update-child-modules
  9. call mvn versions:commit
  10. :exit