32
32
33
33
## WARNING: NoClassDefFoundError when using GraphQL Java Tools > 5.4.x
34
34
35
- If you're using ` graphql-java-tools ` you need to set the ` kotlin.version ` in your Spring Boot project explicitly to
36
- version 1.3.10, because Spring Boot Starter parent currently overrides it with a 1.2.* version of Kotlin.
35
+ If you're using ` graphql-java-tools ` in combination with Spring Boot 2.1.x or below then you need to set the
36
+ ` kotlin.version ` in your Spring Boot project explicitly to version 1.3.70, because Spring Boot Starter parent currently
37
+ overrides it with a 1.2.* version of Kotlin.
37
38
` graphql-java-tools ` requires 1.3.* however because of its coroutine support. If you don't override this version
38
39
you will run into a ` NoClassDefFoundError ` .
39
40
@@ -42,14 +43,14 @@ Spring Boot team has indicated the Kotlin version will be upgraded to 1.3 in Spr
42
43
### Using Gradle
43
44
Set the Kotlin version in your ` gradle.properties `
44
45
```
45
- kotlin.version=1.3.10
46
+ kotlin.version=1.3.70
46
47
```
47
48
48
49
### Using Maven
49
50
Set the Kotlin version in your ` <properties> ` section
50
51
``` xml
51
52
<properties >
52
- <kotlin .version>1.3.10 </kotlin .version>
53
+ <kotlin .version>1.3.70 </kotlin .version>
53
54
</properties >
54
55
```
55
56
@@ -80,19 +81,19 @@ repositories {
80
81
}
81
82
82
83
dependencies {
83
- compile 'com.graphql-java-kickstart:graphql-spring-boot-starter:6 .0.1 '
84
+ compile 'com.graphql-java-kickstart:graphql-spring-boot-starter:7 .0.0 '
84
85
85
86
// to embed Altair tool
86
- runtime 'com.graphql-java-kickstart:altair-spring-boot-starter:6 .0.1 '
87
+ runtime 'com.graphql-java-kickstart:altair-spring-boot-starter:7 .0.0 '
87
88
88
89
// to embed GraphiQL tool
89
- runtime 'com.graphql-java-kickstart:graphiql-spring-boot-starter:6 .0.1 '
90
+ runtime 'com.graphql-java-kickstart:graphiql-spring-boot-starter:7 .0.0 '
90
91
91
92
// to embed Voyager tool
92
- runtime 'com.graphql-java-kickstart:voyager-spring-boot-starter:6 .0.1 '
93
+ runtime 'com.graphql-java-kickstart:voyager-spring-boot-starter:7 .0.0 '
93
94
94
95
// testing facilities
95
- testCompile 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:6 .0.1 '
96
+ testCompile 'com.graphql-java-kickstart:graphql-spring-boot-starter-test:7 .0.0 '
96
97
}
97
98
```
98
99
@@ -101,38 +102,38 @@ Maven:
101
102
<dependency >
102
103
<groupId >com.graphql-java-kickstart</groupId >
103
104
<artifactId >graphql-spring-boot-starter</artifactId >
104
- <version >6 .0.1 </version >
105
+ <version >7 .0.0 </version >
105
106
</dependency >
106
107
107
108
<!-- to embed Altair tool -->
108
109
<dependency >
109
110
<groupId >com.graphql-java-kickstart</groupId >
110
111
<artifactId >altair-spring-boot-starter</artifactId >
111
- <version >6 .0.1 </version >
112
+ <version >7 .0.0 </version >
112
113
<scope >runtime</scope >
113
114
</dependency >
114
115
115
116
<!-- to embed GraphiQL tool -->
116
117
<dependency >
117
118
<groupId >com.graphql-java-kickstart</groupId >
118
119
<artifactId >graphiql-spring-boot-starter</artifactId >
119
- <version >6 .0.1 </version >
120
+ <version >7 .0.0 </version >
120
121
<scope >runtime</scope >
121
122
</dependency >
122
123
123
124
<!-- to embed Voyager tool -->
124
125
<dependency >
125
126
<groupId >com.graphql-java-kickstart</groupId >
126
127
<artifactId >voyager-spring-boot-starter</artifactId >
127
- <version >6 .0.1 </version >
128
+ <version >7 .0.0 </version >
128
129
<scope >runtime</scope >
129
130
</dependency >
130
131
131
132
<!-- testing facilities -->
132
133
<dependency >
133
134
<groupId >com.graphql-java-kickstart</groupId >
134
135
<artifactId >graphql-spring-boot-starter-test</artifactId >
135
- <version >6 .0.1 </version >
136
+ <version >7 .0.0 </version >
136
137
<scope >test</scope >
137
138
</dependency >
138
139
0 commit comments