Skip to content

Commit

Permalink
Adapting goci script to zooma. Now working
Browse files Browse the repository at this point in the history
  • Loading branch information
CatherineLeroy committed Jan 28, 2016
1 parent 2dd3e09 commit 9e18e73
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ fi

base=${0%/*}/;

# invoke maven versions plugin to increment project structure versions
mvn -f $base/pom.xml versions:set -DnewVersion=$VERSION || exit 1
PROJECT_LIST='';

# switch into goci-dependencies and increment all project module versions
mvn -f $base/goci-dependencies/pom.xml versions:set -DnewVersion=$VERSION || exit 1

# finally replace version number property in goci-dependencies pom with new version
sed -i "s/\(<goci.version>\)\([^<]*\)\(<\/goci.version>\)/\1$VERSION\3/g" $base/goci-dependencies/pom.xml || exit 1
find $base -name 'pom.xml' | while read line; do
if [[ $line != *'.//lodestar/'* ]]
then
sed -i '' "s/\(<zooma.version>\)\([^<]*\)\(<[^>]*\)/\1$VERSION\3/g" $line || exit 1
fi
done

mvn -f $base/pom.xml -N versions:set -DnewVersion=$VERSION || exit 1

0 comments on commit 9e18e73

Please sign in to comment.