blob: 159eb99c1e81da41ec7dc0f8fbb1fddf23ad54e1 [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
9
10cd apps
11
alshabib7ea6e0e2016-08-18 14:41:18 -070012mvn -U versions:set -DallowSnapshots=true -DnewVersion=$APP_VERSION versions:commit
13git submodule foreach mvn -U versions:set -DallowSnapshots=true -DnewVersion=$APP_VERSION versions:commit
alshabib12f4c342016-06-28 17:20:45 +020014
15
alshabib7ea6e0e2016-08-18 14:41:18 -070016git submodule foreach mvn -U versions:update-parent -DallowSnapshots=true -DparentVersion=[$ONOS_VERSION] versions:commit
17git submodule foreach mvn -U versions:update-property -Dproperty=onos.version -DnewVersion=[$ONOS_VERSION] -DallowSnapshots=true versions:commit