Skip to content

Commit

Permalink
Revert "Merge staging to prod - Version update (#89)"
Browse files Browse the repository at this point in the history
  • Loading branch information
gkwan-ibm authored Jun 4, 2021
1 parent 99b65fb commit eecf5f4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 18 deletions.
6 changes: 3 additions & 3 deletions finish/ear/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.7.1</version>
<version>5.6.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -62,7 +62,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>3.2.0</version>
<version>3.0.2</version>
<configuration>
<modules>
<!-- tag::jarModule[] -->
Expand Down Expand Up @@ -93,7 +93,7 @@
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.3.4</version>
<version>3.2.3</version>
</plugin>
<!-- end::liberty-maven-plugin[] -->

Expand Down
2 changes: 1 addition & 1 deletion finish/war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>org.eclipse.microprofile</groupId>
<artifactId>microprofile</artifactId>
<version>4.0.1</version>
<version>3.3</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
Expand Down
7 changes: 4 additions & 3 deletions scripts/dailyBuild.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/bin/bash
while getopts t:d: flag; do
while getopts t:d:b:u: flag; do
case "${flag}" in
t) DATE="${OPTARG}" ;;
d) DRIVER="${OPTARG}" ;;
*) echo "Invalid option";;
b) BUILD="${OPTARG}" ;;
u) DOCKER_USERNAME="${OPTARG}" ;;
esac
done

sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER</runtimeUrl></install></configuration>" ear/pom.xml
sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/"$DATE"/"$DRIVER"</runtimeUrl></install></configuration>" ear/pom.xml
cat ear/pom.xml

../scripts/testApp.sh
10 changes: 2 additions & 8 deletions scripts/testApp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,10 @@ set -euxo pipefail
# liberty:create - Create a Liberty server.
# liberty:install-feature - Install a feature packaged as a Subsystem Archive (esa) to the Liberty runtime.
# liberty:deploy - Copy applications to the Liberty server's dropins or apps directory.
mvn -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-q clean install
mvn -q clean install

cd ear
mvn -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
liberty:create liberty:install-feature liberty:deploy
mvn liberty:create liberty:install-feature liberty:deploy

## Run the tests
# These commands are separated because if one of the commands fail, the test script will fail and exit.
Expand Down
4 changes: 2 additions & 2 deletions start/ear/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.7.1</version>
<version>5.6.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -47,7 +47,7 @@
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.3.4</version>
<version>3.2.3</version>
</plugin>

<!-- Since the package type is ear,
Expand Down
2 changes: 1 addition & 1 deletion start/war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>org.eclipse.microprofile</groupId>
<artifactId>microprofile</artifactId>
<version>4.0.1</version>
<version>3.3</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
Expand Down

0 comments on commit eecf5f4

Please sign in to comment.