Using sun.awt.image with Java 11

I made repository with two example projects (GitHub - Feamor/KotlinJava11Test). The first is plain Java project with gradle. The second is Kotlin JVM project with gradle. All of them using sun.awt.AppContext. When I use Java 11, first project buiding successfully due to --add-exports param, added in build.gradle file. But I can’t build Kotlin project. I need some solution.