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 |
Andrea Campanella | 8663fe4 | 2017-11-30 19:02:12 +0100 | [diff] [blame^] | 9 | APPS="aaa config igmp mcast olt vtn carrierethernet" |
alshabib | 12f4c34 | 2016-06-28 17:20:45 +0200 | [diff] [blame] | 10 | |
| 11 | cd apps |
| 12 | |
alshabib | 7ea6e0e | 2016-08-18 14:41:18 -0700 | [diff] [blame] | 13 | mvn -U versions:set -DallowSnapshots=true -DnewVersion=$APP_VERSION versions:commit |
alshabib | 12f4c34 | 2016-06-28 17:20:45 +0200 | [diff] [blame] | 14 | |
alshabib | f8c5011 | 2016-09-27 14:25:59 -0700 | [diff] [blame] | 15 | for app in $APPS; do |
| 16 | cd $app |
| 17 | mvn -U versions:set -DallowSnapshots=true -DnewVersion=$APP_VERSION versions:commit |
| 18 | mvn -U versions:update-parent -DallowSnapshots=true -DparentVersion=[$ONOS_VERSION] versions:commit |
| 19 | mvn -U versions:update-property -Dproperty=onos.version -DnewVersion=[$ONOS_VERSION] -DallowSnapshots=true versions:commit |
| 20 | cd .. |
| 21 | done |