Skip to content

Commit

Permalink
update versions (#169) (#172)
Browse files Browse the repository at this point in the history
* update versions

* mvn connection timeout fix

* update versions

Co-authored-by: Tien-Thanh Le <[email protected]>

Co-authored-by: Tien-Thanh Le <[email protected]>
  • Loading branch information
gkwan-ibm and tt-le authored May 28, 2021
1 parent fad440c commit 3f3b37c
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ include::{common-includes}/twyb-end.adoc[]
Now, navigate to the `start` directory to begin.

[role=command]
include::{common-includes}/devmode-start.adoc[]
include::{common-includes}/devmode-lmp33-start.adoc[]

The MicroProfile Rest Client API is included in the MicroProfile dependency specified by your [hotspot file=0]`pom.xml` file. Look for the dependency with the [hotspot=microprofile file=0]`microprofile` artifact ID.

Expand Down
14 changes: 7 additions & 7 deletions finish/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,33 @@
<!-- tag::microprofile[] -->
<artifactId>microprofile</artifactId>
<!-- end::microprofile[] -->
<version>3.3</version>
<version>4.0.1</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<!-- Java utility classes -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.10</version>
<version>3.12.0</version>
</dependency>
<!-- For tests-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.2</version>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-client</artifactId>
<version>3.3.6</version>
<version>3.4.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-extension-providers</artifactId>
<version>3.3.6</version>
<version>3.4.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -74,7 +74,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.1</version>
</plugin>
<!-- Plugin to run unit tests -->
<plugin>
Expand All @@ -86,7 +86,7 @@
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.4</version>
</plugin>
<!-- Plugin to run functional tests -->
<plugin>
Expand Down
4 changes: 2 additions & 2 deletions finish/src/main/liberty/config/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<feature>jsonp-1.1</feature>
<feature>cdi-2.0</feature>
<!-- tag::mpConfig[] -->
<feature>mpConfig-1.4</feature>
<feature>mpConfig-2.0</feature>
<!-- end::mpConfig[] -->
<!-- tag::mpRestClient[] -->
<feature>mpRestClient-1.4</feature>
<feature>mpRestClient-2.0</feature>
<!-- end::mpRestClient[] -->
</featureManager>

Expand Down
8 changes: 4 additions & 4 deletions finish/src/main/webapp/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (c) 2016, 2020 IBM Corp.
Copyright (c) 2016, 2021 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,9 +30,9 @@ <h2>Eclipse MicroProfile</h2>
<p>
For more information about the features used in this application, see the Open Liberty documentation:
<ul>
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-3.3.html" target="_blank" rel="noopener noreferrer">MicroProfile 3.3</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#mpRestClient-1.4.html" target="_blank" rel="noopener noreferrer">MicroProfile Rest Client 1.4</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#mpConfig-1.4.html" target="_blank" rel="noopener noreferrer">MicroProfile Config 1.4</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-4.0.html" target="_blank" rel="noopener noreferrer">MicroProfile 4.0</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#mpRestClient-2.0.html" target="_blank" rel="noopener noreferrer">MicroProfile Rest Client 2.0</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#mpConfig-2.0.html" target="_blank" rel="noopener noreferrer">MicroProfile Config 2.0</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#cdi-2.0.html" target="_blank" rel="noopener noreferrer">Contexts and Dependency Injection 2.0</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#jaxrs-2.1.html" target="_blank" rel="noopener noreferrer">Java RESTful Services 2.1</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#jsonp-1.1.html" target="_blank" rel="noopener noreferrer">JavaScript Object Notation Processing 1.1</a></li>
Expand Down
10 changes: 3 additions & 7 deletions scripts/dailyBuild.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
#!/bin/bash
while getopts t:d:b:u: flag; do
while getopts t:d: flag; do
case "${flag}" in
t) DATE="${OPTARG}" ;;
d) DRIVER="${OPTARG}" ;;
b) BUILD="${OPTARG}" ;;
u) DOCKER_USERNAME="${OPTARG}" ;;
*) echo "Invalid option";;
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>" 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>" pom.xml
cat pom.xml

sed -i "s;FROM openliberty/open-liberty:kernel-java8-openj9-ubi;FROM "$DOCKER_USERNAME"/olguides:"$BUILD";g" Dockerfile
cat Dockerfile

../scripts/testApp.sh
10 changes: 8 additions & 2 deletions scripts/testApp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +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 -q clean package liberty:create liberty:install-feature liberty:deploy
mvn -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-q clean package 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 All @@ -24,5 +27,8 @@ mvn -q clean package liberty:create liberty:install-feature liberty:deploy
# liberty:stop - Stop a Liberty server.
# failsafe:verify - Verifies that the integration tests of an application passed.
mvn liberty:start
mvn failsafe:integration-test liberty:stop
mvn -Dhttp.keepAlive=false \
-Dmaven.wagon.http.pool=false \
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
failsafe:integration-test liberty:stop
mvn failsafe:verify
14 changes: 7 additions & 7 deletions start/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,33 @@
<!-- tag::microprofile[] -->
<artifactId>microprofile</artifactId>
<!-- end::microprofile[] -->
<version>3.3</version>
<version>4.0.1</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<!-- Java utility classes -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.10</version>
<version>3.12.0</version>
</dependency>
<!-- For tests-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.2</version>
<version>5.7.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-client</artifactId>
<version>3.3.6</version>
<version>3.4.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-extension-providers</artifactId>
<version>3.3.6</version>
<version>3.4.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -74,7 +74,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.1</version>
</plugin>
<!-- Plugin to run unit tests -->
<plugin>
Expand All @@ -86,7 +86,7 @@
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.2.3</version>
<version>3.3.4</version>
</plugin>
<!-- Plugin to run functional tests -->
<plugin>
Expand Down
4 changes: 2 additions & 2 deletions start/src/main/liberty/config/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<feature>jaxrs-2.1</feature>
<feature>jsonp-1.1</feature>
<feature>cdi-2.0</feature>
<feature>mpConfig-1.4</feature>
<feature>mpConfig-2.0</feature>
<!-- tag::mpRestClient[] -->
<feature>mpRestClient-1.4</feature>
<feature>mpRestClient-2.0</feature>
<!-- end::mpRestClient[] -->
</featureManager>

Expand Down
8 changes: 4 additions & 4 deletions start/src/main/webapp/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (c) 2016, 2020 IBM Corp.
Copyright (c) 2016, 2021 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,9 +30,9 @@ <h2>Eclipse MicroProfile</h2>
<p>
For more information about the features used in this application, see the Open Liberty documentation:
<ul>
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-3.3.html" target="_blank" rel="noopener noreferrer">MicroProfile 3.3</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#mpRestClient-1.4.html" target="_blank" rel="noopener noreferrer">MicroProfile Rest Client 1.4</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#mpConfig-1.4.html" target="_blank" rel="noopener noreferrer">MicroProfile Config 1.4</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-4.0.html" target="_blank" rel="noopener noreferrer">MicroProfile 4.0</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#mpRestClient-2.0.html" target="_blank" rel="noopener noreferrer">MicroProfile Rest Client 2.0</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#mpConfig-2.0.html" target="_blank" rel="noopener noreferrer">MicroProfile Config 2.0</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#cdi-2.0.html" target="_blank" rel="noopener noreferrer">Contexts and Dependency Injection 2.0</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#jaxrs-2.1.html" target="_blank" rel="noopener noreferrer">Java RESTful Services 2.1</a></li>
<li><a href="https://openliberty.io/docs/ref/feature/#jsonp-1.1.html" target="_blank" rel="noopener noreferrer">JavaScript Object Notation Processing 1.1</a></li>
Expand Down

0 comments on commit 3f3b37c

Please sign in to comment.