alshabib | 12f4c34 | 2016-06-28 17:20:45 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | #----------------------------------------------- |
| 4 | #Updates versions for all onos cord applications |
| 5 | #----------------------------------------------- |
| 6 | |
| 7 | APP_VERSION=$1 |
| 8 | ONOS_VERSION=$2 |
| 9 | |
| 10 | cd apps |
| 11 | |
alshabib | 7ea6e0e | 2016-08-18 14:41:18 -0700 | [diff] [blame] | 12 | mvn -U versions:set -DallowSnapshots=true -DnewVersion=$APP_VERSION versions:commit |
| 13 | git submodule foreach mvn -U versions:set -DallowSnapshots=true -DnewVersion=$APP_VERSION versions:commit |
alshabib | 12f4c34 | 2016-06-28 17:20:45 +0200 | [diff] [blame] | 14 | |
| 15 | |
alshabib | 7ea6e0e | 2016-08-18 14:41:18 -0700 | [diff] [blame] | 16 | git submodule foreach mvn -U versions:update-parent -DallowSnapshots=true -DparentVersion=[$ONOS_VERSION] versions:commit |
| 17 | git submodule foreach mvn -U versions:update-property -Dproperty=onos.version -DnewVersion=[$ONOS_VERSION] -DallowSnapshots=true versions:commit |