Skip to content

Commit f0d03ea

Browse files
committed
Included warning and temporary fix for kotlin 1.3 dependency
1 parent 0134b01 commit f0d03ea

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,29 @@ GraphQL Java Tools works extremely well if you already have domain POJOs that ho
1010

1111
GraphQL Java Tools aims for seamless integration with Java, but works for any JVM language. Try it with Kotlin!
1212

13+
## WARNING: NoClassDefFoundError when using Spring Boot
14+
15+
If you're using `graphl-java-tools` you need to set the `kotlin.version` in your Spring Boot project explicitly to
16+
version 1.3.10, because Spring Boot Starter parent currently overrides it with a 1.2.* version of Kotlin.
17+
`graphql-java-tools` requires 1.3.* however because of its coroutine support. If you don't override this version
18+
you will run into a `NoClassDefFoundError`.
19+
20+
Spring Boot team has indicated the Kotlin version will be upgraded to 1.3 in Spring Boot 2.2.
21+
22+
### Using Gradle
23+
Set the Kotlin version in your `gradle.properties`
24+
```
25+
kotlin.version=1.3.10
26+
```
27+
28+
### Using Maven
29+
Set the Kotlin version in your `<properties>` section
30+
```xml
31+
<properties>
32+
<kotlin.version>1.3.10</kotlin.version>
33+
</properties>
34+
```
35+
1336
## Documentation
1437

1538
Take a look at our new [documentation](https://www.graphql-java-kickstart.com/tools/) for more details.

0 commit comments

Comments
 (0)