Also upgrades apache commons text.
Issue-ID: POLICY-4045
Change-Id: Id93f9f92864403eecc198325f6f9dc8083532aab
Signed-off-by: liamfallon <liam.fallon@est.tech>
<version>${version.netty}</version>
</dependency>
<version>${version.netty}</version>
</dependency>
+ <!-- Apache Commons -->
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-lang3</artifactId>
+ <version>3.12.0</version>
+ </dependency>
+
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<dependency>
<groupId>org.apache.commons</groupId>
<dependency>
<groupId>org.apache.commons</groupId>
- <artifactId>commons-vfs2</artifactId>
- <version>2.8.0</version>
+ <artifactId>commons-text</artifactId>
+ <version>1.10.0</version>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java-core</artifactId>
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java-core</artifactId>
release_phase_15() {
echo "Updating release data file . . ."
updateRefs.sh \
release_phase_15() {
echo "Updating release data file . . ."
updateRefs.sh \
+ -t "$release_data_file_tag" \
-d "$release_data_file" \
-l "$repo_location" \
-d "$release_data_file" \
-l "$repo_location" \
- -r "policy/parent" \
- -t "$release_data_file_tag"
generateCommit.sh \
-l "$repo_location" \
-r "policy/parent" \
generateCommit.sh \
-l "$repo_location" \
-r "policy/parent" \
echo " -o - update policy/drools-pdp references"
echo " -x - update policy/apex-pdp references"
echo " -k - update docker base images in Dockerfiles"
echo " -o - update policy/drools-pdp references"
echo " -x - update policy/apex-pdp references"
echo " -k - update docker base images in Dockerfiles"
- echo " -f - update release data in policy parent"
- echo " -t tag - tag the release data file with the given tag"
+ echo " -t tag - update release data in policy parent and"
+ echo " tag the release data file with the given tag"
echo " -s - update release references to snapshot references,"
echo " if omitted, snapshot references are updated to release references"
echo ""
echo " -s - update release references to snapshot references,"
echo " if omitted, snapshot references are updated to release references"
echo ""
update_apex_pdp=false
update_snapshot=false
update_docker=false
update_apex_pdp=false
update_snapshot=false
update_docker=false
+update_release_file=false
-while getopts "hd:l:r:pcmoxkft:s" opt
+while getopts "hd:l:r:pcmoxkt:s" opt
- f)
- update_file=true
- ;;
- release_data_file_tag="$OPTARG"_
+ update_release_file=true
+ release_data_file_tag="$OPTARG"
;;
s)
update_snapshot=true
;;
s)
update_snapshot=true
+if [ "$update_release_file" = true ] && [ -z "$release_data_file_tag" ]
+then
+ echo "tag not specified on -t flag"
+ exit 1
+fi
+
# shellcheck disable=SC2034
# shellcheck disable=SC2046
read -r parent_repo \
# shellcheck disable=SC2034
# shellcheck disable=SC2046
read -r parent_repo \
-if [ "$update_file" = true ]
+if [ "$update_release_file" = true ]
then
if [ ! "$target_repo" = "policy/parent" ]
then
then
if [ ! "$target_repo" = "policy/parent" ]
then
- release_data_file_name="$release_data_file_tag$release_data_file"
+ release_data_file_name="$release_data_file_tag"_"$release_data_file"
echo \
"updating release data at" \
echo \
"updating release data at" \