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

Commit ef877f2

Browse files
authored
Merge branch 'master' into release/8.1.1
2 parents 5903e34 + 4f20e0c commit ef877f2

File tree

243 files changed

+173471
-8626
lines changed

Some content is hidden

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

243 files changed

+173471
-8626
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
2-
name: Bug report about: Create a report to help us improve title: ''
3-
labels: bug assignees: ''
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
47

58
---
69

@@ -9,7 +12,6 @@ A clear and concise description of what the bug is.
912

1013
**To Reproduce**
1114
Steps to reproduce the behavior:
12-
1315
1. Go to '...'
1416
2. Click on '....'
1517
3. Scroll down to '....'
@@ -22,7 +24,6 @@ A clear and concise description of what you expected to happen.
2224
If applicable, add screenshots to help explain your problem.
2325

2426
**Desktop (please complete the following information):**
25-
2627
- OS: [e.g. iOS]
2728
- Browser [e.g. chrome, safari]
2829
- Version [e.g. 22]

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Question
4-
url: https://spectrum.chat/graphql-java-kick
5-
about: Anything you are not sure about? Ask the community on Spectrum!
4+
url: https://github.com/graphql-java-kickstart/graphql-spring-boot/discussions
5+
about: Anything you are not sure about? Ask the community in Discussions!

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
2-
name: Feature request about: Suggest an idea for this project title: ''
3-
labels: enhancement assignees: ''
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
47

58
---
69

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
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)
12+
and join the team!
1213

1314

1415
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
@@ -107,19 +108,19 @@ repositories {
107108
}
108109
109110
dependencies {
110-
implementation 'com.graphql-java-kickstart:graphql-spring-boot-starter:8.0.0'
111+
implementation 'com.graphql-java-kickstart:graphql-spring-boot-starter:8.1.0'
111112
112113
// to embed Altair tool
113-
runtimeOnly 'com.graphql-java-kickstart:altair-spring-boot-starter:8.0.0'
114+
runtimeOnly 'com.graphql-java-kickstart:altair-spring-boot-starter:8.1.0'
114115
115116
// to embed GraphiQL tool
116-
runtimeOnly 'com.graphql-java-kickstart:graphiql-spring-boot-starter:8.0.0'
117+
runtimeOnly 'com.graphql-java-kickstart:graphiql-spring-boot-starter:8.1.0'
117118
118119
// to embed Voyager tool
119-
runtimeOnly 'com.graphql-java-kickstart:voyager-spring-boot-starter:8.0.0'
120+
runtimeOnly 'com.graphql-java-kickstart:voyager-spring-boot-starter:8.1.0'
120121
121122
// testing facilities
122-
testImplementation 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:8.0.0'
123+
testImplementation 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:8.1.0'
123124
}
124125
```
125126

@@ -129,38 +130,38 @@ Maven:
129130
<dependency>
130131
<groupId>com.graphql-java-kickstart</groupId>
131132
<artifactId>graphql-spring-boot-starter</artifactId>
132-
<version>8.0.0</version>
133+
<version>8.1.0</version>
133134
</dependency>
134135

135136
<!-- to embed Altair tool -->
136137
<dependency>
137138
<groupId>com.graphql-java-kickstart</groupId>
138139
<artifactId>altair-spring-boot-starter</artifactId>
139-
<version>8.0.0</version>
140+
<version>8.1.0</version>
140141
<scope>runtime</scope>
141142
</dependency>
142143

143144
<!-- to embed GraphiQL tool -->
144145
<dependency>
145146
<groupId>com.graphql-java-kickstart</groupId>
146147
<artifactId>graphiql-spring-boot-starter</artifactId>
147-
<version>8.0.0</version>
148+
<version>8.1.0</version>
148149
<scope>runtime</scope>
149150
</dependency>
150151

151152
<!-- to embed Voyager tool -->
152153
<dependency>
153154
<groupId>com.graphql-java-kickstart</groupId>
154155
<artifactId>voyager-spring-boot-starter</artifactId>
155-
<version>8.0.0</version>
156+
<version>8.1.0</version>
156157
<scope>runtime</scope>
157158
</dependency>
158159

159160
<!-- testing facilities -->
160161
<dependency>
161162
<groupId>com.graphql-java-kickstart</groupId>
162163
<artifactId>graphql-spring-boot-starter-test</artifactId>
163-
<version>8.0.0</version>
164+
<version>8.1.0</version>
164165
<scope>test</scope>
165166
</dependency>
166167

altair-spring-boot-autoconfigure/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1818
*/
1919
dependencies{
20+
implementation(project(':graphql-kickstart-starter-utils'))
2021
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
21-
22+
2223
implementation "org.springframework.boot:spring-boot-autoconfigure"
2324
implementation "org.apache.commons:commons-text:$LIB_APACHE_COMMONS_TEXT"
2425
compileOnly "org.springframework.boot:spring-boot-starter-web"

altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairAutoConfiguration.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
@ConditionalOnClass(DispatcherServlet.class)
1818
public class AltairAutoConfiguration {
1919

20-
@Bean
21-
@ConditionalOnProperty(value = "altair.enabled", havingValue = "true", matchIfMissing = true)
22-
AltairController altairController() {
23-
return new AltairController();
24-
}
20+
@Bean
21+
@ConditionalOnProperty(value = "altair.enabled", havingValue = "true", matchIfMissing = true)
22+
AltairController altairController() {
23+
return new AltairController();
24+
}
2525

2626
}

altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairController.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import com.fasterxml.jackson.core.JsonProcessingException;
44
import com.fasterxml.jackson.databind.ObjectMapper;
5+
import graphql.kickstart.util.PropertyGroupReader;
6+
import graphql.kickstart.util.PropsLoader;
57
import java.io.IOException;
68
import java.io.InputStream;
79
import java.nio.charset.Charset;
@@ -55,11 +57,11 @@ private void loadTemplate() throws IOException {
5557
}
5658

5759
private void loadProps() throws IOException {
58-
props = new PropsLoader(environment).load();
60+
props = new PropsLoader(environment, "altair.props.resources.", "altair.props.values.").load();
5961
}
6062

6163
private void loadHeaders() throws JsonProcessingException {
62-
PropertyGroupReader propertyReader = new PropertyGroupReader(environment, "graphiql.headers.");
64+
PropertyGroupReader propertyReader = new PropertyGroupReader(environment, "altair.headers.");
6365
Properties headerProperties = propertyReader.load();
6466
this.headers = new ObjectMapper().writeValueAsString(headerProperties);
6567
}
@@ -86,7 +88,7 @@ private Map<String, String> getReplacements(String graphqlEndpoint,
8688
replacements.put("pageTitle", altairProperties.getPageTitle());
8789
replacements.put("pageFavicon", getResourceUrl("favicon.ico", "favicon.ico"));
8890
replacements.put("altairBaseUrl", getResourceUrl(
89-
StringUtils.join(altairProperties.getSTATIC().getBasePath(), "/vendor/altair/"),
91+
StringUtils.join(altairProperties.getBasePath(), "/vendor/altair/"),
9092
joinJsUnpkgPath(ALTAIR, altairProperties.getCdn().getVersion(), "build/dist/")));
9193
replacements
9294
.put("altairLogoUrl", getResourceUrl("assets/img/logo_350.svg", "assets/img/logo_350.svg"));

altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/AltairProperties.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,21 @@ public class AltairProperties {
99

1010
private boolean enabled = true;
1111
private Endpoint endpoint = new Endpoint();
12-
private Static STATIC = new Static();
1312
private Cdn cdn = new Cdn();
1413
private String pageTitle = "Altair";
1514
private String mapping = "/altair";
15+
private String basePath = "";
1616

1717
@Data
1818
static class Endpoint {
19+
1920
private String graphql = "/graphql";
2021
private String subscriptions = "/subscriptions";
2122
}
2223

23-
@Data
24-
static class Static {
25-
private String basePath = "";
26-
}
27-
2824
@Data
2925
static class Cdn {
26+
3027
private boolean enabled = false;
3128
private String version = "2.4.11";
3229
}

altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/PropertyGroupReader.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

altair-spring-boot-autoconfigure/src/main/java/graphql/kickstart/altair/boot/PropsLoader.java

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)