Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 8d49188

Browse files
committed
Upgrade servlet to 11.0.0
1 parent d974748 commit 8d49188

File tree

4 files changed

+21
-22
lines changed

4 files changed

+21
-22
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# GraphQL and Graph*i*QL Spring Framework Boot Starters
22

3-
[![GitHub CI Workflow](https://github.com/graphql-java-kickstart/graphql-spring-boot/workflows/ci/badge.svg)](https://github.com/graphql-java-kickstart/graphql-spring-boot/actions?query=workflow%3ACI+branch%3Amaster)
43
[![Maven Central](https://img.shields.io/maven-central/v/com.graphql-java-kickstart/graphql-spring-boot-starter.svg)](https://maven-badges.herokuapp.com/maven-central/com.graphql-java-kickstart/graphql-spring-boot-starter)
5-
[![Chat on Spectrum](https://img.shields.io/badge/spectrum-join%20the%20community-%23800080)](https://spectrum.chat/graphql-java-kick)
4+
[![GitHub CI Workflow](https://github.com/graphql-java-kickstart/graphql-spring-boot/workflows/ci/badge.svg)](https://github.com/graphql-java-kickstart/graphql-spring-boot/actions?query=workflow%3ACI+branch%3Amaster)
5+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=graphql-java-kickstart_graphql-spring-boot&metric=alert_status)](https://sonarcloud.io/dashboard?id=graphql-java-kickstart_graphql-spring-boot)
66

77
#### We are looking for contributors!
88

99
Are you interested in improving our documentation, working on the codebase, reviewing PRs?
1010

11-
[Reach out to us on Spectrum](https://spectrum.chat/graphql-java-kick) and join the team!
11+
[Reach out to us on Discussions](https://github.com/graphql-java-kickstart/graphql-spring-boot/discussions) and join the team!
1212

1313

1414
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
@@ -107,19 +107,19 @@ repositories {
107107
}
108108
109109
dependencies {
110-
implementation 'com.graphql-java-kickstart:graphql-spring-boot-starter:8.0.0'
110+
implementation 'com.graphql-java-kickstart:graphql-spring-boot-starter:8.1.0'
111111
112112
// to embed Altair tool
113-
runtimeOnly 'com.graphql-java-kickstart:altair-spring-boot-starter:8.0.0'
113+
runtimeOnly 'com.graphql-java-kickstart:altair-spring-boot-starter:8.1.0'
114114
115115
// to embed GraphiQL tool
116-
runtimeOnly 'com.graphql-java-kickstart:graphiql-spring-boot-starter:8.0.0'
116+
runtimeOnly 'com.graphql-java-kickstart:graphiql-spring-boot-starter:8.1.0'
117117
118118
// to embed Voyager tool
119-
runtimeOnly 'com.graphql-java-kickstart:voyager-spring-boot-starter:8.0.0'
119+
runtimeOnly 'com.graphql-java-kickstart:voyager-spring-boot-starter:8.1.0'
120120
121121
// testing facilities
122-
testImplementation 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:8.0.0'
122+
testImplementation 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:8.1.0'
123123
}
124124
```
125125

@@ -129,38 +129,38 @@ Maven:
129129
<dependency>
130130
<groupId>com.graphql-java-kickstart</groupId>
131131
<artifactId>graphql-spring-boot-starter</artifactId>
132-
<version>8.0.0</version>
132+
<version>8.1.0</version>
133133
</dependency>
134134

135135
<!-- to embed Altair tool -->
136136
<dependency>
137137
<groupId>com.graphql-java-kickstart</groupId>
138138
<artifactId>altair-spring-boot-starter</artifactId>
139-
<version>8.0.0</version>
139+
<version>8.1.0</version>
140140
<scope>runtime</scope>
141141
</dependency>
142142

143143
<!-- to embed GraphiQL tool -->
144144
<dependency>
145145
<groupId>com.graphql-java-kickstart</groupId>
146146
<artifactId>graphiql-spring-boot-starter</artifactId>
147-
<version>8.0.0</version>
147+
<version>8.1.0</version>
148148
<scope>runtime</scope>
149149
</dependency>
150150

151151
<!-- to embed Voyager tool -->
152152
<dependency>
153153
<groupId>com.graphql-java-kickstart</groupId>
154154
<artifactId>voyager-spring-boot-starter</artifactId>
155-
<version>8.0.0</version>
155+
<version>8.1.0</version>
156156
<scope>runtime</scope>
157157
</dependency>
158158

159159
<!-- testing facilities -->
160160
<dependency>
161161
<groupId>com.graphql-java-kickstart</groupId>
162162
<artifactId>graphql-spring-boot-starter-test</artifactId>
163-
<version>8.0.0</version>
163+
<version>8.1.0</version>
164164
<scope>test</scope>
165165
</dependency>
166166

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ subprojects {
5151
group "$PROJECT_GROUP"
5252

5353
repositories {
54+
maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }
5455
mavenLocal()
5556
mavenCentral()
5657
jcenter()
5758
maven { url "https://dl.bintray.com/graphql-java-kickstart/releases" }
58-
maven { url "https://oss.jfrog.org/artifactory/oss-snapshot-local" }
5959
maven { url "https://repo.spring.io/libs-milestone" }
6060
}
6161

example-request-scoped-dataloader/src/main/java/graphql/servlet/examples/dataloader/requestscope/CustomerResolver.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package graphql.servlet.examples.dataloader.requestscope;
22

3-
import graphql.kickstart.tools.GraphQLResolver;
43
import graphql.kickstart.execution.context.GraphQLContext;
4+
import graphql.kickstart.tools.GraphQLResolver;
55
import graphql.schema.DataFetchingEnvironment;
6-
import java.util.Optional;
76
import java.util.concurrent.CompletableFuture;
87
import org.dataloader.DataLoader;
98
import org.dataloader.DataLoaderRegistry;
@@ -13,9 +12,9 @@
1312
public class CustomerResolver implements GraphQLResolver<Customer> {
1413

1514
public CompletableFuture<String> getName(Customer customer, DataFetchingEnvironment dfe) {
16-
Optional<DataLoaderRegistry> registry = ((GraphQLContext) dfe.getContext()).getDataLoaderRegistry();
17-
if (registry.isPresent()) {
18-
DataLoader<Integer, String> customerLoader = registry.get().getDataLoader("customerDataLoader");
15+
DataLoaderRegistry registry = ((GraphQLContext) dfe.getContext()).getDataLoaderRegistry();
16+
DataLoader<Integer, String> customerLoader = registry.getDataLoader("customerDataLoader");
17+
if (customerLoader != null) {
1918
return customerLoader.load(customer.getCustomerId());
2019
}
2120
throw new IllegalStateException("No customer data loader found");

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1717
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1818
#
19-
version=8.1.0-SNAPSHOT
19+
version=11.0.0-SNAPSHOT
2020
### Project Metadata
2121
PROJECT_GROUP=com.graphql-java-kickstart
2222
PROJECT_NAME=graphql-spring-boot
@@ -31,9 +31,9 @@ VCS=Git
3131
SOURCE_COMPATIBILITY=1.8
3232
TARGET_COMPATIBILITY=1.8
3333
### Dependencies
34-
LIB_GRAPHQL_JAVA_VER=15.0
34+
LIB_GRAPHQL_JAVA_VER=16.1
3535
LIB_SPRING_BOOT_VER=2.3.6.RELEASE
36-
LIB_GRAPHQL_SERVLET_VER=10.1.0
36+
LIB_GRAPHQL_SERVLET_VER=11.0.0-SNAPSHOT
3737
LIB_GRAPHQL_JAVA_TOOLS_VER=6.3.0
3838
LIB_GRAPHQL_ANNOTATIONS_VER=8.2
3939
LIB_REFLECTIONS_VER=0.9.11

0 commit comments

Comments
 (0)