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

Commit 0923ca1

Browse files
authored
Merge pull request #160 from graphql-java-kickstart/bugfix/157-graphql-tools-props
Added ConfigurationProperties for graphql-tools props (fix #157)
2 parents 46e9c32 + 2743abe commit 0923ca1

File tree

17 files changed

+75
-77
lines changed

17 files changed

+75
-77
lines changed

README.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -166,34 +166,15 @@ Available Spring Boot configuration parameters (either `application.yml` or `app
166166
```yaml
167167
graphql:
168168
tools:
169-
schemaLocationPattern: "**/*.graphqls"
169+
schema-location-pattern: "**/*.graphqls"
170170
# Enable or disable the introspection query. Disabling it puts your server in contravention of the GraphQL
171171
# specification and expectations of most clients, so use this option with caution
172-
introspectionEnabled: true
172+
introspection-enabled: true
173173
```
174174
By default GraphQL tools uses the location pattern `**/*.graphqls` to scan for GraphQL schemas on the classpath.
175175
Use the `schemaLocationPattern` property to customize this pattern.
176176

177177

178-
## GraphQL Spring Common [LATEST SUPPORTED VERSION: 3.1.1]
179-
**https://github.com/oembedler/spring-graphql-common**
180-
181-
See the [Readme](https://github.com/oembedler/spring-graphql-common#usage) and the [example](https://github.com/graphql-java-kickstart/graphql-spring-boot/tree/master/example-spring-common) for usage instructions.
182-
183-
#### Application Properties
184-
```yaml
185-
graphql:
186-
spring-graphql-common:
187-
clientMutationIdName: clientMutationId
188-
injectClientMutationId: true
189-
allowEmptyClientMutationId: false
190-
mutationInputArgumentName: input
191-
outputObjectNamePrefix: Payload
192-
inputObjectNamePrefix: Input
193-
schemaMutationObjectName: Mutation
194-
```
195-
196-
197178
# Contributions
198179

199180
Contributions are welcome. Please respect the [Code of Conduct](http://contributor-covenant.org/version/1/3/0/).
@@ -203,8 +184,6 @@ Contributions are welcome. Please respect the [Code of Conduct](http://contribu
203184

204185
`graphql-spring-boot-starter` and `graphiql-spring-boot-starter` are licensed under the MIT License. See [LICENSE](LICENSE.md) for details.
205186

206-
[spring-graphql-common License](https://github.com/oembedler/spring-graphql-common/blob/master/LICENSE.md)
207-
208187
[graphql-java License](https://github.com/andimarek/graphql-java/blob/master/LICENSE.md)
209188

210189
[graphiql License](https://github.com/graphql/graphiql/blob/master/LICENSE)

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ buildscript {
3434

3535
plugins {
3636
id 'net.researchgate.release' version '2.7.0'
37+
id 'io.franzbecker.gradle-lombok' version '1.14' apply false
3738
}
3839

3940
subprojects {
@@ -42,6 +43,7 @@ subprojects {
4243
apply plugin: 'maven'
4344
apply plugin: 'maven-publish'
4445
apply plugin: "com.jfrog.bintray"
46+
apply plugin: 'io.franzbecker.gradle-lombok'
4547

4648
group = PROJECT_GROUP
4749

@@ -65,6 +67,14 @@ subprojects {
6567
targetCompatibility = TARGET_COMPATIBILITY
6668
}
6769

70+
compileJava.dependsOn(processResources)
71+
72+
lombok {
73+
version = "1.18.4"
74+
sha256 = ""
75+
}
76+
77+
6878
if (!it.name.startsWith('example')) {
6979

7080
jar {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.oembedler.moon.graphql.boot.resolvers;
1+
package com.graphql.sample.boot;
22

33
class Comment {
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.oembedler.moon.graphql.boot;
1+
package com.graphql.sample.boot;
22

33
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
44
import graphql.servlet.ObjectMapperConfigurer;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.oembedler.moon.graphql.boot.resolvers;
1+
package com.graphql.sample.boot;
22

33
import com.coxautodev.graphql.tools.GraphQLMutationResolver;
44
import java.util.Random;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.oembedler.moon.graphql.boot.resolvers;
1+
package com.graphql.sample.boot;
22

33
public class Post {
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.oembedler.moon.graphql.boot.resolvers;
1+
package com.graphql.sample.boot;
22

33
import com.coxautodev.graphql.tools.GraphQLResolver;
44
import org.springframework.stereotype.Component;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.oembedler.moon.graphql.boot.resolvers;
1+
package com.graphql.sample.boot;
22

33
import com.coxautodev.graphql.tools.GraphQLQueryResolver;
44
import org.springframework.stereotype.Component;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.oembedler.moon.graphql.boot
1+
package com.graphql.sample.boot
22

33

44
import com.graphql.spring.boot.test.GraphQLTestTemplate
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.oembedler.moon.graphql.boot;
1+
package com.graphql.sample.boot;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
44
import com.fasterxml.jackson.databind.node.ObjectNode;

0 commit comments

Comments
 (0)