Skip to content

Commit 13de79e

Browse files
authored
Merge pull request #68 from OpenLiberty/staging
Merge staging to prod - Version update mp5 (#67)
2 parents 3141a2e + 89db8e7 commit 13de79e

File tree

33 files changed

+211
-238
lines changed

33 files changed

+211
-238
lines changed

CONTRIBUTING.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,60 @@
22

33
Anyone can contribute to the Open Liberty guides and we welcome your contributions!
44

5-
There are multiple ways to contribute: report bugs, fix bugs, contribute code, improve upon documentation, etc.
5+
There are multiple ways to contribute: report bugs, fix bugs, contribute code, improve upon documentation, etc.
66

77
## Raising issues
88

99
Please raise any bug reports in this [guide repository](../../issues). For new topics, large updates to existing guides, or general suggestions and ideas, report your issue in the [Open Liberty common guides repository](https://github.com/OpenLiberty/guides-common/issues). Be sure to search the list of open issues to see if your issue has already been raised.
1010

1111
A good bug report makes it easy for everyone to understand what you were trying to do and what went wrong. Provide as much context as possible so we can try to recreate the issue.
1212

13-
## Contributions
13+
## Contributions
1414

15-
Contributing to an Open Liberty guide is simple. All you need to do is create your own branch to include your contribution and open a pull request to the `qa` (quality assurance) branch.
15+
Contributing to an Open Liberty guide is simple. All you need to do is create your branch to include your contribution and open a pull request to the `staging` (quality assurance) branch.
1616

1717
### Text or content contributions
1818

1919
If you are contributing text or content changes via a pull request, you need to certify that the originality of the work follows the [Developer Certificate of Origin (DCO)](https://developercertificate.org).
2020

2121
Add a line to the end of the Git commit message to sign your work:
2222

23-
```
23+
```text
2424
Signed-off-by: Jane Williams <[email protected]>
2525
```
2626

2727
The sign-off is just a line at the end of the commit message that certifies that you wrote it or otherwise have the right to pass it on as an open source patch.
2828

29-
Use your real name when you sign. We can't accept pseudonyms or anonymous contributions.
29+
Use your real name when you sign. We can't accept pseudonyms or anonymous contributions.
3030

3131
Many Git UI tools have support for adding the `Signed-off-by` line to the end of your commit message. This line can be automatically added by the `git commit` command by using the `-s` option.
3232

33-
If reviewers agree with your change, your change will be merged to the `master` branch for publishing.
33+
If reviewers agree with your change, your change will be merged to the `prod` branch for publishing.
3434

3535
### Code contributions
3636

3737
If you are contributing trivial code changes such as typos, redundant spaces, or minor formatting and spelling errors, follow the instructions under [Text or content contributions](./CONTRIBUTING.md#text-or-content-contributions).
3838

39-
If you are contributing code changes via a pull request for non-trivial changes, you must sign off on the [Individual Contributor License Agreement](https://github.com/OpenLiberty/open-liberty/blob/master/cla/open-liberty-cla-individual.pdf). An example of a non-trivial change could be adding a new
40-
microservice to the backend application of the guide.
39+
If you are contributing code changes via a pull request for non-trivial changes, you must sign off on the [Individual Contributor License Agreement](https://github.com/OpenLiberty/open-liberty/blob/release/cla/open-liberty-cla-individual.pdf). An example of a non-trivial change could be adding a new
40+
microservice to the backend application of the guide.
4141

42-
If you are contributing changes as part of your job, you may also wish to have your employer sign a [Corporate Contributor License Agreement](https://github.com/OpenLiberty/open-liberty/blob/master/cla/open-liberty-cla-corporate.pdf).
42+
If you are contributing changes as part of your job, you may also wish to have your employer sign a [Corporate Contributor License Agreement](https://github.com/OpenLiberty/open-liberty/blob/release/cla/open-liberty-cla-corporate.pdf).
4343

44-
Instructions for how to sign and submit these agreements are located at the top of each document.
44+
Instructions for how to sign and submit these agreements are located at the top of each document.
4545

46-
After we obtain the signed CLA, you are welcome to open a pull request against the `qa` branch, and the team will be notified for review. We ask you follow these steps through the submission process:
46+
After we obtain the signed CLA, you are welcome to open a pull request against the `staging` branch, and the team will be notified for review. We ask you to follow these steps through the submission process:
4747

48-
1. Open a pull request against the `qa` branch.
48+
1. Open a pull request against the `staging` branch.
4949
2. A "CLA signed" label will be manually added by the team.
50-
3. The team will be notified and will review your change(s).
51-
- If there are further changes to be made, the team will request changes on the pull request.
50+
3. The team will be notified and will review your change(s).
51+
- If there are further changes to be made, the team will request changes on the pull request.
5252
- If the team does not agree with the change, the PR will be closed with an explanation and suggestion for follow-up.
5353
4. If the team approves, a full Open Liberty site build will be run.
5454
5. Based on the results of the build:
55-
- If further review is needed, we will let you know about a pending review from our team and discuss any necessary improvements that need to be made to your change(s).
55+
- If further review is needed, we will let you know about a pending review from our team and discuss any necessary improvements that need to be made to your change(s).
5656
- If everything is successful, the team will merge your PR.
5757

5858
## Questions and concerns
5959

6060
If you have any questions or concerns about the guides or about Open Liberty, you can visit [Gitter for Open Liberty](https://gitter.im/OpenLiberty/) and post your questions in the relevant rooms. You can also join the Open Liberty group on [Groups.io](https://groups.io/g/openliberty) to discuss any issues you have.
61+

README.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
:page-essential: false
1414
:page-description: Learn how to use MicroProfile GraphQL to query and update data.
1515
:page-tags: ['MicroProfile']
16-
:page-related-guides: ['rest-intro', 'jpa-intro', 'mongodb-intro']
16+
:page-related-guides: ['rest-intro', 'graphql-client', 'jpa-intro', 'mongodb-intro']
1717
:page-permalink: /guides/{projectid}
1818
:common-includes: https://raw.githubusercontent.com/OpenLiberty/guides-common/prod
1919
:imagesdir: /img/guide/{projectid}
@@ -32,7 +32,7 @@ Learn how to use MicroProfile GraphQL to query and update data from multiple ser
3232

3333
== What you'll learn
3434

35-
You will learn how to build and use a simple GraphQL service with https://openliberty.io/docs/latest/reference/feature/mpGraphQL-1.0.html[MicroProfile GraphQL^].
35+
You will learn how to build and use a simple GraphQL service with https://openliberty.io/docs/latest/reference/feature/mpGraphQL-2.0.html[MicroProfile GraphQL^].
3636

3737
GraphQL is an open source data query language. Unlike REST APIs, each HTTP request that is sent to a GraphQL service goes to a single HTTP endpoint. Create, read, update, and delete operations and their details are differentiated by the contents of the request. If the operation returns data, the user specifies what properties of the data that they want returned. For read operations, a JSON object is returned that contains only the data and properties that are specified. For other operations, a JSON object might be returned containing information such as a success message.
3838

@@ -153,7 +153,7 @@ To save time, the [hotspot=class file=3]`SystemLoad` class and [hotspot=class fi
153153

154154
== Implementing system service
155155

156-
The `system` microservices are backend services that use JAX-RS. For more details on using JAX-RS, see the https://www.openliberty.io/guides/rest-intro.html[Creating a RESTful web service guide^]. These `system` microservices report system properties. GraphQL can access multiple instances of these `system` microservices and collate their information. In a real scenario, GraphQL might access multiple databases or other services.
156+
The `system` microservices are backend services that use Jakarta Restful Web Services. For more details on using Jakarta Restful Web Services, see the https://www.openliberty.io/guides/rest-intro.html[Creating a RESTful web service guide^]. These `system` microservices report system properties. GraphQL can access multiple instances of these `system` microservices and collate their information. In a real scenario, GraphQL might access multiple databases or other services.
157157

158158
[role="code_command hotspot file=0" ,subs="quotes"]
159159
----
@@ -258,7 +258,7 @@ server.xml
258258
include::finish/graphql/src/main/liberty/config/server.xml[]
259259
----
260260

261-
The [hotspot=graphql file=1]`mpGraphQL-1.0` feature that is added to the [hotspot file=1]`server.xml` enables the use of the https://openliberty.io/docs/latest/reference/feature/mpGraphQL-1.0.html[MicroProfile GraphQL^] feature in Open Liberty. Open Liberty's MicroProfile GraphQL feature includes GraphiQL. Enable it by setting the [hotspot=enableGraphiql file=1]`io.openliberty.enableGraphQLUI` variable to `true`.
261+
The [hotspot=graphql file=1]`mpGraphQL` feature that is added to the [hotspot file=1]`server.xml` enables the use of the https://openliberty.io/docs/latest/reference/feature/mpGraphQL-2.0.html[MicroProfile GraphQL^] feature in Open Liberty. Open Liberty's MicroProfile GraphQL feature includes GraphiQL. Enable it by setting the [hotspot=enableGraphiql file=1]`io.openliberty.enableGraphQLUI` variable to `true`.
262262

263263

264264
== Building and running the application

finish/graphql/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ LABEL \
1717
description="This image contains the graphql microservice running with the Open Liberty runtime."
1818

1919
COPY --chown=1001:0 src/main/liberty/config /config/
20-
COPY --chown=1001:0 target/graphql.war /config/apps
20+
COPY --chown=1001:0 target/guide-microprofile-graphql-graphql.war /config/apps
2121

2222
RUN configure.sh

finish/graphql/pom.xml

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>io.openliberty.guides</groupId>
8-
<artifactId>graphql</artifactId>
8+
<artifactId>guide-microprofile-graphql-graphql</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010
<packaging>war</packaging>
1111

@@ -24,13 +24,13 @@
2424
<dependency>
2525
<groupId>jakarta.platform</groupId>
2626
<artifactId>jakarta.jakartaee-api</artifactId>
27-
<version>8.0.0</version>
27+
<version>9.1.0</version>
2828
<scope>provided</scope>
2929
</dependency>
3030
<dependency>
3131
<groupId>org.eclipse.microprofile</groupId>
3232
<artifactId>microprofile</artifactId>
33-
<version>4.1</version>
33+
<version>5.0</version>
3434
<type>pom</type>
3535
<scope>provided</scope>
3636
</dependency>
@@ -39,7 +39,7 @@
3939
<!-- tag::models[] -->
4040
<dependency>
4141
<groupId>io.openliberty.guides</groupId>
42-
<artifactId>models</artifactId>
42+
<artifactId>guide-microprofile-graphql-models</artifactId>
4343
<version>1.0-SNAPSHOT</version>
4444
</dependency>
4545
<!-- end::models[] -->
@@ -49,45 +49,33 @@
4949
<dependency>
5050
<groupId>org.eclipse.microprofile.graphql</groupId>
5151
<artifactId>microprofile-graphql-api</artifactId>
52-
<version>1.1.0</version>
52+
<version>2.0</version>
5353
<scope>provided</scope>
5454
</dependency>
5555
<!-- end::graphQLDependency[] -->
5656
<!-- For tests -->
57-
<dependency>
58-
<groupId>org.apache.httpcomponents</groupId>
59-
<artifactId>httpclient</artifactId>
60-
<version>4.5.13</version>
61-
<scope>test</scope>
62-
</dependency>
6357
<dependency>
6458
<groupId>org.junit.jupiter</groupId>
6559
<artifactId>junit-jupiter</artifactId>
66-
<version>5.7.2</version>
60+
<version>5.8.2</version>
6761
<scope>test</scope>
6862
</dependency>
6963
<dependency>
70-
<groupId>org.apache.cxf</groupId>
71-
<artifactId>cxf-rt-rs-client</artifactId>
72-
<version>3.4.4</version>
64+
<groupId>org.jboss.resteasy</groupId>
65+
<artifactId>resteasy-client</artifactId>
66+
<version>6.0.0.Final</version>
7367
<scope>test</scope>
7468
</dependency>
7569
<dependency>
76-
<groupId>org.apache.cxf</groupId>
77-
<artifactId>cxf-rt-rs-extension-providers</artifactId>
78-
<version>3.4.4</version>
70+
<groupId>org.jboss.resteasy</groupId>
71+
<artifactId>resteasy-json-binding-provider</artifactId>
72+
<version>6.0.0.Final</version>
7973
<scope>test</scope>
8074
</dependency>
8175
<dependency>
8276
<groupId>org.glassfish</groupId>
83-
<artifactId>javax.json</artifactId>
84-
<version>1.1.4</version>
85-
<scope>test</scope>
86-
</dependency>
87-
<dependency>
88-
<groupId>org.eclipse</groupId>
89-
<artifactId>yasson</artifactId>
90-
<version>1.0.9</version>
77+
<artifactId>jakarta.json</artifactId>
78+
<version>2.0.1</version>
9179
<scope>test</scope>
9280
</dependency>
9381
</dependencies>
@@ -99,7 +87,7 @@
9987
<plugin>
10088
<groupId>io.openliberty.tools</groupId>
10189
<artifactId>liberty-maven-plugin</artifactId>
102-
<version>3.5.1</version>
90+
<version>3.5.2</version>
10391
<configuration>
10492
<looseApplication>false</looseApplication>
10593
</configuration>

finish/graphql/src/main/java/io/openliberty/guides/graphql/GraphQLService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// tag::copyright[]
22
/*******************************************************************************
3-
* Copyright (c) 2021 IBM Corporation and others.
3+
* Copyright (c) 2021, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
66
* which accompanies this distribution, and is available at
@@ -19,8 +19,8 @@
1919
import java.util.List;
2020
import java.util.Map;
2121

22-
import javax.inject.Inject;
23-
import javax.ws.rs.ProcessingException;
22+
import jakarta.inject.Inject;
23+
import jakarta.ws.rs.ProcessingException;
2424

2525
import org.eclipse.microprofile.config.inject.ConfigProperty;
2626
import org.eclipse.microprofile.graphql.Description;

finish/graphql/src/main/java/io/openliberty/guides/graphql/client/SystemClient.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// tag::copyright[]
22
/*******************************************************************************
3-
* Copyright (c) 2021 IBM Corporation and others.
3+
* Copyright (c) 2021, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
66
* which accompanies this distribution, and is available at
@@ -12,15 +12,15 @@
1212
// end::copyright[]
1313
package io.openliberty.guides.graphql.client;
1414

15-
import javax.ws.rs.Consumes;
16-
import javax.ws.rs.GET;
17-
import javax.ws.rs.POST;
18-
import javax.ws.rs.Path;
19-
import javax.ws.rs.PathParam;
20-
import javax.ws.rs.ProcessingException;
21-
import javax.ws.rs.Produces;
22-
import javax.ws.rs.core.MediaType;
23-
import javax.ws.rs.core.Response;
15+
import jakarta.ws.rs.Consumes;
16+
import jakarta.ws.rs.GET;
17+
import jakarta.ws.rs.POST;
18+
import jakarta.ws.rs.Path;
19+
import jakarta.ws.rs.PathParam;
20+
import jakarta.ws.rs.ProcessingException;
21+
import jakarta.ws.rs.Produces;
22+
import jakarta.ws.rs.core.MediaType;
23+
import jakarta.ws.rs.core.Response;
2424

2525
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
2626

finish/graphql/src/main/java/io/openliberty/guides/graphql/client/UnknownUriExceptionMapper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// tag::copyright[]
22
/*******************************************************************************
3-
* Copyright (c) 2021 IBM Corporation and others.
3+
* Copyright (c) 2021, 2022 IBM Corporation and others.
44
* All rights reserved. This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License v1.0
66
* which accompanies this distribution, and is available at
@@ -14,9 +14,9 @@
1414

1515
import java.util.logging.Logger;
1616

17-
import javax.ws.rs.core.MultivaluedMap;
18-
import javax.ws.rs.core.Response;
19-
import javax.ws.rs.ext.Provider;
17+
import jakarta.ws.rs.core.MultivaluedMap;
18+
import jakarta.ws.rs.core.Response;
19+
import jakarta.ws.rs.ext.Provider;
2020
import org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper;
2121

2222
@Provider
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<server description="GraphQL service">
22
<featureManager>
3-
<feature>jaxrs-2.1</feature>
4-
<feature>jsonp-1.1</feature>
5-
<feature>cdi-2.0</feature>
6-
<feature>mpConfig-2.0</feature>
7-
<feature>mpRestClient-2.0</feature>
3+
<feature>restfulWS-3.0</feature>
4+
<feature>jsonb-2.0</feature>
5+
<feature>jsonp-2.0</feature>
6+
<feature>cdi-3.0</feature>
7+
<feature>mpConfig-3.0</feature>
8+
<feature>mpRestClient-3.0</feature>
89
<!-- tag::graphql[] -->
9-
<feature>mpGraphQL-1.0</feature>
10+
<feature>mpGraphQL-2.0</feature>
1011
<!-- end::graphql[] -->
1112
</featureManager>
1213

@@ -17,7 +18,7 @@
1718
<variable name="io.openliberty.enableGraphQLUI" value="true" />
1819
<!-- end::enableGraphiql[] -->
1920

20-
<webApplication location="graphql.war" contextRoot="/" />
21+
<webApplication location="guide-microprofile-graphql-graphql.war" contextRoot="/" />
2122
<httpEndpoint host="*" httpPort="${default.http.port}"
2223
httpsPort="${default.https.port}" id="defaultHttpEndpoint"/>
2324
</server>

finish/graphql/src/main/webapp/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2021 IBM Corp.
2+
Copyright (c) 2021, 2022 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.
@@ -41,13 +41,13 @@ <h2>Eclipse MicroProfile</h2>
4141
<p>
4242
For more information about the features used in this application, see the Open Liberty documentation:
4343
<ul>
44-
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-4.1.html" target="_blank" rel="noopener noreferrer">MicroProfile 4.1</a></li>
44+
<li><a href="https://openliberty.io/docs/ref/feature/#microProfile-5.0.html" target="_blank" rel="noopener noreferrer">MicroProfile 5.0</a></li>
4545
<li><a href="https://openliberty.io/docs/ref/feature/mpGraphQL-1.0.html" target="_blank" rel="noopener noreferrer">MicroProfile GraphQL 1.0</a></li>
46-
<li><a href="https://openliberty.io/docs/ref/feature/#mpConfig-2.0.html" target="_blank" rel="noopener noreferrer">MicroProfile Config 2.0</a></li>
47-
<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>
48-
<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>
49-
<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>
50-
<li><a href="https://openliberty.io/docs/ref/feature/#jsonb-1.0.html" target="_blank" rel="noopener noreferrer">JavaScript Object Notation Binding 1.0</a></li>
46+
<li><a href="https://openliberty.io/docs/ref/feature/#mpConfig-3.0.html" target="_blank" rel="noopener noreferrer">MicroProfile Config 3.0</a></li>
47+
<li><a href="https://openliberty.io/docs/ref/feature/#mpRestClient-3.0.html" target="_blank" rel="noopener noreferrer">MicroProfile Rest Client 3.0</a></li>
48+
<li><a href="https://openliberty.io/docs/ref/feature/#cdi-4.0.html" target="_blank" rel="noopener noreferrer">Contexts and Dependency Injection 4.0</a></li>
49+
<li><a href="https://openliberty.io/docs/ref/feature/#restfulWS-3.0.html" target="_blank" rel="noopener noreferrer">Java RESTful Services 3.0</a></li>
50+
<li><a href="https://openliberty.io/docs/ref/feature/#jsonb-3.0.html" target="_blank" rel="noopener noreferrer">JavaScript Object Notation Binding 3.0</a></li>
5151
</ul>
5252
</p>
5353
</div>

0 commit comments

Comments
 (0)