3232
3333## WARNING: NoClassDefFoundError when using GraphQL Java Tools > 5.4.x
3434
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.
3738` graphql-java-tools ` requires 1.3.* however because of its coroutine support. If you don't override this version
3839you will run into a ` NoClassDefFoundError ` .
3940
@@ -42,14 +43,14 @@ Spring Boot team has indicated the Kotlin version will be upgraded to 1.3 in Spr
4243### Using Gradle
4344Set the Kotlin version in your ` gradle.properties `
4445```
45- kotlin.version=1.3.10
46+ kotlin.version=1.3.70
4647```
4748
4849### Using Maven
4950Set the Kotlin version in your ` <properties> ` section
5051``` xml
5152<properties >
52- <kotlin .version>1.3.10 </kotlin .version>
53+ <kotlin .version>1.3.70 </kotlin .version>
5354</properties >
5455```
5556
@@ -80,19 +81,19 @@ repositories {
8081}
8182
8283dependencies {
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 '
8485
8586 // 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 '
8788
8889 // 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 '
9091
9192 // 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 '
9394
9495 // 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 '
9697}
9798```
9899
@@ -101,38 +102,38 @@ Maven:
101102<dependency >
102103 <groupId >com.graphql-java-kickstart</groupId >
103104 <artifactId >graphql-spring-boot-starter</artifactId >
104- <version >6 .0.1 </version >
105+ <version >7 .0.0 </version >
105106</dependency >
106107
107108<!-- to embed Altair tool -->
108109<dependency >
109110 <groupId >com.graphql-java-kickstart</groupId >
110111 <artifactId >altair-spring-boot-starter</artifactId >
111- <version >6 .0.1 </version >
112+ <version >7 .0.0 </version >
112113 <scope >runtime</scope >
113114</dependency >
114115
115116<!-- to embed GraphiQL tool -->
116117<dependency >
117118 <groupId >com.graphql-java-kickstart</groupId >
118119 <artifactId >graphiql-spring-boot-starter</artifactId >
119- <version >6 .0.1 </version >
120+ <version >7 .0.0 </version >
120121 <scope >runtime</scope >
121122</dependency >
122123
123124<!-- to embed Voyager tool -->
124125<dependency >
125126 <groupId >com.graphql-java-kickstart</groupId >
126127 <artifactId >voyager-spring-boot-starter</artifactId >
127- <version >6 .0.1 </version >
128+ <version >7 .0.0 </version >
128129 <scope >runtime</scope >
129130</dependency >
130131
131132<!-- testing facilities -->
132133<dependency >
133134 <groupId >com.graphql-java-kickstart</groupId >
134135 <artifactId >graphql-spring-boot-starter-test</artifactId >
135- <version >6 .0.1 </version >
136+ <version >7 .0.0 </version >
136137 <scope >test</scope >
137138</dependency >
138139
0 commit comments