blob: 71ac512b8e1c0f7212e398d473ae7c39b8c67ceb [file] [log] [blame]
alshabib12f4c342016-06-28 17:20:45 +02001#!/bin/bash
2
3#-----------------------------------------------
4#Updates versions for all onos cord applications
5#-----------------------------------------------
6
7APP_VERSION=$1
8ONOS_VERSION=$2
Andrea Campanella8663fe42017-11-30 19:02:12 +01009APPS="aaa config igmp mcast olt vtn carrierethernet"
alshabib12f4c342016-06-28 17:20:45 +020010
11cd apps
12
alshabib7ea6e0e2016-08-18 14:41:18 -070013mvn -U versions:set -DallowSnapshots=true -DnewVersion=$APP_VERSION versions:commit
alshabib12f4c342016-06-28 17:20:45 +020014
alshabibf8c50112016-09-27 14:25:59 -070015for 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 ..
21done