version.cmd 487 B

12345678910111213141516
  1. @echo off
  2. set CURRENT_DATE=%date:~5,2%%date:~8,2%
  3. set VERSION=2.0.6_%CURRENT_DATE%
  4. set /p APP_VERSION=Please enter a new version number(%VERSION%): || set APP_VERSION=%VERSION%
  5. echo %APP_VERSION%
  6. echo "Clean Project ..."
  7. call mvn clean -f pom.xml
  8. echo "Update version ..."
  9. call mvn versions:set -DnewVersion=%APP_VERSION% -DprocessAllModules=true -DallowSnapshots=true -DgenerateBackupPoms=false
  10. call mvn -N versions:update-child-modules
  11. call mvn versions:commit
  12. :exit