Skip to content

Commit 2d590af

Browse files
authored
Merge pull request #202 from OpenLiberty/staging
Merge staging to prod: Update to MP6 and JEE10
2 parents c024b47 + 74af734 commit 2d590af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+405
-366
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646

4747
steps:
4848
- uses: actions/checkout@v2
49-
- name: Set up JDK 8
49+
- name: Set up JDK 11
5050
uses: actions/setup-java@v1
5151
with:
52-
java-version: 8
52+
java-version: 11
5353
- run: unset _JAVA_OPTIONS
5454

5555
- name: Run tests

LICENSE

Lines changed: 246 additions & 172 deletions
Large diffs are not rendered by default.

README.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2018, 2022 IBM Corporation and others.
1+
// Copyright (c) 2018, 2023 IBM Corporation and others.
22
// Licensed under Creative Commons Attribution-NoDerivatives
33
// 4.0 International (CC BY-ND 4.0)
44
// https://creativecommons.org/licenses/by-nd/4.0/
@@ -276,7 +276,7 @@ When the server is running, point your browser to the http://localhost:9080/inve
276276

277277
Next, point your browser to the `system` service URL, which is located at http://localhost:9080/system/properties[http://localhost:9080/system/properties^], to retrieve the system properties for the specific localhost. Notice that the results from the two URLs are identical because the `inventory` service gets its results from calling the `system` service.
278278

279-
To see the application metrics, go to the https://localhost:9443/metrics/base[https://localhost:9443/metrics/base^] URL. Log in as the `admin` user, and use `adminpwd` as the password. See the following sample outputs for the `@Fallback` annotated method and the fallback method before a fallback occurs:
279+
To see the application metrics, go to the https://localhost:9443/metrics?scope=base[https://localhost:9443/metrics?scope=base^] URL. Log in as the `admin` user, and use `adminpwd` as the password. See the following sample outputs for the `@Fallback` annotated method and the fallback method before a fallback occurs:
280280

281281
endif::[]
282282

@@ -298,7 +298,7 @@ Notice that the results from the two URLs are identical because the **inventory*
298298

299299
To see the application metrics, run the following curl commmand. This command will Log in using **admin** user, and you will have to enter **adminpwd** as the password.
300300
```bash
301-
curl -k -u admin https://localhost:9443/metrics/base | grep _ft_
301+
curl -k -u admin https://localhost:9443/metrics?scope=base | grep _ft_
302302
```
303303

304304
See the following sample outputs for the **@Fallback** annotated method and the fallback method before a fallback occurs:
@@ -386,14 +386,14 @@ endif::[]
386386

387387
// Following context for the static guide:
388388
ifndef::cloud-hosted[]
389-
Go to the https://localhost:9443/metrics/base[https://localhost:9443/metrics/base^] URL again. See the following sample outputs for the `@Fallback` annotated method and the fallback method after a fallback occurs:
389+
Go to the https://localhost:9443/metrics?scope=base[https://localhost:9443/metrics?scope=base^] URL again. See the following sample outputs for the `@Fallback` annotated method and the fallback method after a fallback occurs:
390390
endif::[]
391391

392392
// Following context for the cloud-hosted guide:
393393
ifdef::cloud-hosted[]
394394
Run the following curl command again and enter ***adminpwd*** as the password:
395395
```bash
396-
curl -k -u admin https://localhost:9443/metrics/base | grep _ft_
396+
curl -k -u admin https://localhost:9443/metrics?scope=base | grep _ft_
397397
```
398398

399399
See the following sample outputs for the ***@Fallback*** annotated method and the fallback method after a fallback occurs:

finish/pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
14-
<maven.compiler.source>1.8</maven.compiler.source>
15-
<maven.compiler.target>1.8</maven.compiler.target>
14+
<maven.compiler.source>11</maven.compiler.source>
15+
<maven.compiler.target>11</maven.compiler.target>
1616
<!-- Liberty configuration -->
1717
<liberty.var.default.http.port>9080</liberty.var.default.http.port>
1818
<liberty.var.default.https.port>9443</liberty.var.default.https.port>
@@ -23,14 +23,14 @@
2323
<dependency>
2424
<groupId>jakarta.platform</groupId>
2525
<artifactId>jakarta.jakartaee-api</artifactId>
26-
<version>9.1.0</version>
26+
<version>10.0.0</version>
2727
<scope>provided</scope>
2828
</dependency>
2929
<!-- tag::microprofile[] -->
3030
<dependency>
3131
<groupId>org.eclipse.microprofile</groupId>
3232
<artifactId>microprofile</artifactId>
33-
<version>5.0</version>
33+
<version>6.0</version>
3434
<type>pom</type>
3535
<scope>provided</scope>
3636
</dependency>
@@ -39,19 +39,19 @@
3939
<dependency>
4040
<groupId>org.junit.jupiter</groupId>
4141
<artifactId>junit-jupiter</artifactId>
42-
<version>5.8.2</version>
42+
<version>5.9.2</version>
4343
<scope>test</scope>
4444
</dependency>
4545
<dependency>
4646
<groupId>org.jboss.resteasy</groupId>
4747
<artifactId>resteasy-client</artifactId>
48-
<version>6.0.0.Final</version>
48+
<version>6.2.3.Final</version>
4949
<scope>test</scope>
5050
</dependency>
5151
<dependency>
5252
<groupId>org.jboss.resteasy</groupId>
5353
<artifactId>resteasy-json-binding-provider</artifactId>
54-
<version>6.0.0.Final</version>
54+
<version>6.2.3.Final</version>
5555
<scope>test</scope>
5656
</dependency>
5757
<dependency>
@@ -80,7 +80,7 @@
8080
<plugin>
8181
<groupId>org.apache.maven.plugins</groupId>
8282
<artifactId>maven-surefire-plugin</artifactId>
83-
<version>2.22.2</version>
83+
<version>3.0.0</version>
8484
</plugin>
8585
<!-- Enable liberty-maven plugin -->
8686
<plugin>
@@ -92,7 +92,7 @@
9292
<plugin>
9393
<groupId>org.apache.maven.plugins</groupId>
9494
<artifactId>maven-failsafe-plugin</artifactId>
95-
<version>2.22.2</version>
95+
<version>3.0.0</version>
9696
<configuration>
9797
<systemPropertyVariables>
9898
<http.port>${liberty.var.default.http.port}</http.port>

finish/src/main/java/io/openliberty/guides/config/CustomConfigSource.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
/*******************************************************************************
33
* Copyright (c) 2017, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
5+
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
7+
* http://www.eclipse.org/legal/epl-2.0/
88
*
9-
* Contributors:
10-
* IBM Corporation - Initial implementation
9+
* SPDX-License-Identifier: EPL-2.0
1110
*******************************************************************************/
1211
// end::copyright[]
1312

finish/src/main/java/io/openliberty/guides/inventory/InventoryApplication.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
/*******************************************************************************
33
* Copyright (c) 2018, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
5+
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
7+
* http://www.eclipse.org/legal/epl-2.0/
88
*
9-
* Contributors:
10-
* IBM Corporation - Initial implementation
9+
* SPDX-License-Identifier: EPL-2.0
1110
*******************************************************************************/
1211
// end::copyright[]
1312
package io.openliberty.guides.inventory;

finish/src/main/java/io/openliberty/guides/inventory/InventoryConfig.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
/*******************************************************************************
33
* Copyright (c) 2018, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
5+
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
7+
* http://www.eclipse.org/legal/epl-2.0/
88
*
9-
* Contributors:
10-
* IBM Corporation - Initial implementation
9+
* SPDX-License-Identifier: EPL-2.0
1110
*******************************************************************************/
1211
// end::copyright[]
1312

finish/src/main/java/io/openliberty/guides/inventory/InventoryManager.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
/*******************************************************************************
33
* Copyright (c) 2017, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
5+
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
7+
* http://www.eclipse.org/legal/epl-2.0/
88
*
9-
* Contributors:
10-
* IBM Corporation - Initial implementation
9+
* SPDX-License-Identifier: EPL-2.0
1110
*******************************************************************************/
1211
// end::copyright[]
1312
package io.openliberty.guides.inventory;

finish/src/main/java/io/openliberty/guides/inventory/InventoryResource.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
/*******************************************************************************
33
* Copyright (c) 2017, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
5+
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
7+
* http://www.eclipse.org/legal/epl-2.0/
88
*
9-
* Contributors:
10-
* IBM Corporation - Initial implementation
9+
* SPDX-License-Identifier: EPL-2.0
1110
*******************************************************************************/
1211
// end::copyright[]
1312

finish/src/main/java/io/openliberty/guides/inventory/InventoryUtils.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
/*******************************************************************************
33
* Copyright (c) 2017, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
5+
* are made available under the terms of the Eclipse Public License 2.0
66
* which accompanies this distribution, and is available at
7-
* http://www.eclipse.org/legal/epl-v10.html
7+
* http://www.eclipse.org/legal/epl-2.0/
88
*
9-
* Contributors:
10-
* IBM Corporation - Initial implementation
9+
* SPDX-License-Identifier: EPL-2.0
1110
*******************************************************************************/
1211
// end::copyright[]
1312
package io.openliberty.guides.inventory;

0 commit comments

Comments
 (0)