blob: 280f350e6cd22e3ac67888f9720287f2617b06fd [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
alshabibf8c50112016-09-27 14:25:59 -07009APPS="aaa config igmp mcast olt vtn"
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