Skip to content

Commit b5ca2db

Browse files
authored
Merge pull request #216 from OpenLiberty/staging
Merge staging to prod - Update to MP6.1 (#215)
2 parents 1e041d4 + 9a3baf1 commit b5ca2db

File tree

8 files changed

+53
-28
lines changed

8 files changed

+53
-28
lines changed

Diff for: .github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
open-pull-requests-limit: 50

Diff for: .github/workflows/add-pr-to-project.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Add PRs to Dependabot PRs dashboard
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- labeled
8+
9+
jobs:
10+
add-to-project:
11+
name: Add PR to dashboard
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/[email protected]
15+
with:
16+
project-url: https://github.com/orgs/OpenLiberty/projects/26
17+
github-token: ${{ secrets.ADMIN_BACKLOG }}
18+
labeled: dependencies

Diff for: README.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, 2023 IBM Corporation and others.
1+
// Copyright (c) 2017, 2024 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/
@@ -15,7 +15,7 @@
1515
:page-essential-order: 1
1616
:page-description: Learn how to create a RESTful service with Jakarta Restful Web Services, JSON-B, and Open Liberty.
1717
:guide-author: Open Liberty
18-
:page-tags: ['MicroProfile', 'Jakarta EE']
18+
:page-tags: ['microprofile', 'jakarta-ee']
1919
:page-related-guides: ['rest-client-java', 'rest-client-angularjs']
2020
:page-permalink: /guides/{projectid}
2121
:page-seo-title: Building a simple RESTful Java microservice using Jakarta Restful Web Services, formerly known as JAX-RS, and JSON-B
@@ -209,7 +209,7 @@ pom.xml
209209
include::finish/pom.xml[]
210210
----
211211

212-
The test code needs to know some information about the application to make requests. The server port and the application context root are key, and are dictated by the Liberty's configuration. While this information can be hardcoded, it is better to specify it in a single place like the Maven [hotspot=defaultHttpPort hotspot=defaultHttpsPort hotspot=appContextRoot file=1]`pom.xml` file. Refer to the [hotspot file=1]`pom.xml` file to see how the application information such as the [hotspot=defaultHttpPort file=1]`default.http.port`, [hotspot=defaultHttpsPort file=1]`default.https.port` and [hotspot=appContextRoot file=1]`app.context.root` elements are provided in the file.
212+
The test code needs to know some information about the application to make requests. The server port and the application context root are key, and are dictated by the Liberty's configuration. While this information can be hardcoded, it is better to specify it in a single place like the Maven [hotspot=defaultHttpPort hotspot=defaultHttpsPort hotspot=appContextRoot file=1]`pom.xml` file. Refer to the [hotspot file=1]`pom.xml` file to see how the application information such as the [hotspot=defaultHttpPort file=1]`http.port`, [hotspot=defaultHttpsPort file=1]`https.port` and [hotspot=appContextRoot file=1]`app.context.root` elements are provided in the file.
213213

214214

215215
These Maven properties are then passed to the Java test program as the [hotspot=testsysprops file=1]`systemPropertyVariables` element in the [hotspot file=1]`pom.xml` file.

Diff for: finish/pom.xml

+10-10
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
<maven.compiler.target>11</maven.compiler.target>
1515
<!-- Liberty configuration -->
1616
<!-- tag::defaultHttpPort[] -->
17-
<liberty.var.default.http.port>9080</liberty.var.default.http.port>
17+
<liberty.var.http.port>9080</liberty.var.http.port>
1818
<!-- end::defaultHttpPort[] -->
1919
<!-- tag::defaultHttpsPort[] -->
20-
<liberty.var.default.https.port>9443</liberty.var.default.https.port>
20+
<liberty.var.https.port>9443</liberty.var.https.port>
2121
<!-- end::defaultHttpsPort[] -->
2222
<!-- tag::appContextRoot[] -->
2323
<liberty.var.app.context.root>LibertyProject</liberty.var.app.context.root>
@@ -35,27 +35,27 @@
3535
<dependency>
3636
<groupId>org.eclipse.microprofile</groupId>
3737
<artifactId>microprofile</artifactId>
38-
<version>6.0</version>
38+
<version>6.1</version>
3939
<type>pom</type>
4040
<scope>provided</scope>
4141
</dependency>
4242
<!-- For tests -->
4343
<dependency>
4444
<groupId>org.junit.jupiter</groupId>
4545
<artifactId>junit-jupiter</artifactId>
46-
<version>5.9.2</version>
46+
<version>5.10.1</version>
4747
<scope>test</scope>
4848
</dependency>
4949
<dependency>
5050
<groupId>org.jboss.resteasy</groupId>
5151
<artifactId>resteasy-client</artifactId>
52-
<version>6.2.3.Final</version>
52+
<version>6.2.7.Final</version>
5353
<scope>test</scope>
5454
</dependency>
5555
<dependency>
5656
<groupId>org.jboss.resteasy</groupId>
5757
<artifactId>resteasy-json-binding-provider</artifactId>
58-
<version>6.2.3.Final</version>
58+
<version>6.2.7.Final</version>
5959
<scope>test</scope>
6060
</dependency>
6161
<dependency>
@@ -73,17 +73,17 @@
7373
<plugin>
7474
<groupId>io.openliberty.tools</groupId>
7575
<artifactId>liberty-maven-plugin</artifactId>
76-
<version>3.8.2</version>
76+
<version>3.10</version>
7777
</plugin>
7878
<!-- Plugin to run functional tests -->
7979
<plugin>
8080
<groupId>org.apache.maven.plugins</groupId>
8181
<artifactId>maven-failsafe-plugin</artifactId>
82-
<version>3.0.0</version>
82+
<version>3.2.5</version>
8383
<configuration>
8484
<!-- tag::testsysprops[] -->
8585
<systemPropertyVariables>
86-
<http.port>${liberty.var.default.http.port}</http.port>
86+
<http.port>${liberty.var.http.port}</http.port>
8787
<context.root>${liberty.var.app.context.root}</context.root>
8888
</systemPropertyVariables>
8989
<!-- end::testsysprops[] -->
@@ -98,7 +98,7 @@
9898
<plugin>
9999
<groupId>org.apache.maven.plugins</groupId>
100100
<artifactId>maven-surefire-plugin</artifactId>
101-
<version>3.0.0</version>
101+
<version>3.2.5</version>
102102
</plugin>
103103
</plugins>
104104
</build>

Diff for: finish/src/main/liberty/config/server.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- end::featureManager[] -->
88

99
<!-- tag::httpEndpoint[] -->
10-
<httpEndpoint httpPort="${default.http.port}" httpsPort="${default.https.port}"
10+
<httpEndpoint httpPort="${http.port}" httpsPort="${https.port}"
1111
id="defaultHttpEndpoint" host="*" />
1212
<!-- end::httpEndpoint[] -->
1313

Diff for: finish/src/main/webapp/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2016, 2023 IBM Corp.
2+
Copyright (c) 2016, 2024 IBM Corp.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ <h2>Eclipse MicroProfile</h2>
3030
<p>
3131
For more information about the features used in this application, see the Open Liberty documentation:
3232
<ul>
33-
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-6.0.html" target="_blank" rel="noopener noreferrer">MicroProfile 6.0</a></li>
33+
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-6.1.html" target="_blank" rel="noopener noreferrer">MicroProfile 6.1</a></li>
3434
<li><a href="https://openliberty.io/docs/ref/feature/#restfulWS-3.1.html" target="_blank" rel="noopener noreferrer">Jakarta RESTful Web Services 3.1</a></li>
3535
<li><a href="https://openliberty.io/docs/ref/feature/#jsonb-3.0.html" target="_blank" rel="noopener noreferrer">Jakarta JSON Binding 3.0</a></li>
3636
</ul>

Diff for: start/pom.xml

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<maven.compiler.source>11</maven.compiler.source>
1414
<maven.compiler.target>11</maven.compiler.target>
1515
<!-- Liberty configuration -->
16-
<liberty.var.default.http.port>9080</liberty.var.default.http.port>
17-
<liberty.var.default.https.port>9443</liberty.var.default.https.port>
16+
<liberty.var.http.port>9080</liberty.var.http.port>
17+
<liberty.var.https.port>9443</liberty.var.https.port>
1818
<liberty.var.app.context.root>LibertyProject</liberty.var.app.context.root>
1919
</properties>
2020

@@ -29,27 +29,27 @@
2929
<dependency>
3030
<groupId>org.eclipse.microprofile</groupId>
3131
<artifactId>microprofile</artifactId>
32-
<version>6.0</version>
32+
<version>6.1</version>
3333
<type>pom</type>
3434
<scope>provided</scope>
3535
</dependency>
3636
<!-- For tests -->
3737
<dependency>
3838
<groupId>org.junit.jupiter</groupId>
3939
<artifactId>junit-jupiter</artifactId>
40-
<version>5.9.2</version>
40+
<version>5.10.1</version>
4141
<scope>test</scope>
4242
</dependency>
4343
<dependency>
4444
<groupId>org.jboss.resteasy</groupId>
4545
<artifactId>resteasy-client</artifactId>
46-
<version>6.2.3.Final</version>
46+
<version>6.2.7.Final</version>
4747
<scope>test</scope>
4848
</dependency>
4949
<dependency>
5050
<groupId>org.jboss.resteasy</groupId>
5151
<artifactId>resteasy-json-binding-provider</artifactId>
52-
<version>6.2.3.Final</version>
52+
<version>6.2.7.Final</version>
5353
<scope>test</scope>
5454
</dependency>
5555
<dependency>
@@ -67,16 +67,16 @@
6767
<plugin>
6868
<groupId>io.openliberty.tools</groupId>
6969
<artifactId>liberty-maven-plugin</artifactId>
70-
<version>3.8.2</version>
70+
<version>3.10</version>
7171
</plugin>
7272
<!-- Plugin to run functional tests -->
7373
<plugin>
7474
<groupId>org.apache.maven.plugins</groupId>
7575
<artifactId>maven-failsafe-plugin</artifactId>
76-
<version>3.0.0</version>
76+
<version>3.2.5</version>
7777
<configuration>
7878
<systemPropertyVariables>
79-
<http.port>${liberty.var.default.http.port}</http.port>
79+
<http.port>${liberty.var.http.port}</http.port>
8080
<context.root>${liberty.var.app.context.root}</context.root>
8181
</systemPropertyVariables>
8282
</configuration>
@@ -90,7 +90,7 @@
9090
<plugin>
9191
<groupId>org.apache.maven.plugins</groupId>
9292
<artifactId>maven-surefire-plugin</artifactId>
93-
<version>3.0.0</version>
93+
<version>3.2.5</version>
9494
</plugin>
9595
</plugins>
9696
</build>

Diff for: start/src/main/webapp/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2016, 2023 IBM Corp.
2+
Copyright (c) 2016, 2024 IBM Corp.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ <h2>Eclipse MicroProfile</h2>
3030
<p>
3131
For more information about the features used in this application, see the Open Liberty documentation:
3232
<ul>
33-
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-6.0.html" target="_blank" rel="noopener noreferrer">MicroProfile 6.0</a></li>
33+
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-6.1.html" target="_blank" rel="noopener noreferrer">MicroProfile 6.1</a></li>
3434
<li><a href="https://openliberty.io/docs/ref/feature/#restfulWS-3.1.html" target="_blank" rel="noopener noreferrer">Jakarta RESTful Web Services 3.1</a></li>
3535
<li><a href="https://openliberty.io/docs/ref/feature/#jsonb-3.0.html" target="_blank" rel="noopener noreferrer">Jakarta JSON Binding 3.0</a></li>
3636
</ul>

0 commit comments

Comments
 (0)