Skip to content

Commit

Permalink
Version setting script change
Browse files Browse the repository at this point in the history
  • Loading branch information
khituras committed Dec 30, 2018
1 parent 743f30e commit 1cd0641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/setProjectVersion.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# To executed in the project's root directory.
# The script expectes one parameter: The new version to set.
# The script expectes two parameters: The new version to set and whether dependencies to (JULIE Lab) snapshots are allowed.
# This script performs the following actions given a Maven version number:
# 1. It sets the version to all parent poms (projects with packaging 'pom') relative to the given root pom (jcore-base or jcore-projects, for example).
# 2. It removes all custom <version> tags of the modules so that they inherit the version from their parent.
Expand All @@ -14,4 +14,4 @@ if [ ! -f jcore-version-normalizer.jar ]; then
wget https://oss.sonatype.org/content/repositories/releases/de/julielab/jcore-version-normalizer/1.1.0/jcore-version-normalizer-1.1.0-jar-with-dependencies.jar -O jcore-version-normalizer.jar
fi

java -jar jcore-version-normalizer.jar pom.xml $1 true
java -jar jcore-version-normalizer.jar pom.xml $1 $2

0 comments on commit 1cd0641

Please sign in to comment.