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

Commit 0f63510

Browse files
committed
Added warning for NoClassDefFoundError using graphql-java-tools 5.4.x
1 parent 08cfeb4 commit 0f63510

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,28 @@
1919

2020
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2121

22+
## WARNING: NoClassDefFoundError when using GraphQL Java Tools 5.4.x
23+
24+
If you're using `graphl-java-tools` you need to set the `kotlin.version` in your Spring Boot project explicitly to
25+
version 1.3.10, because Spring Boot Starter parent currently overrides it with a 1.2.* version of Kotlin.
26+
`graphql-java-tools` requires 1.3.* however because of its coroutine support. If you don't override this version
27+
you will run into a `NoClassDefFoundError`.
28+
29+
Spring Boot team has indicated the Kotlin version will be upgraded to 1.3 in Spring Boot 2.2.
30+
31+
### Using Gradle
32+
Set the Kotlin version in your `gradle.properties`
33+
```
34+
kotlin.version=1.3.10
35+
```
36+
37+
### Using Maven
38+
Set the Kotlin version in your `<properties>` section
39+
```xml
40+
<properties>
41+
<kotlin.version>1.3.10</kotlin.version>
42+
</properties>
43+
```
2244

2345
# Documentation
2446

0 commit comments

Comments
 (0)