Working around "package X is declared in module Y, which does not export it" with Kotlin gradle build
When hacking with internal classes using Kotlin with JDK 12, I ran into this error:
error: package jdk.javadoc.internal.tool is not visible
import jdk.javadoc.internal.tool.*;
^
(package jdk.javadoc.internal.tool is declared in module jdk.javadoc, which does not export it)
1 error