@bamboo
I opened this PR that has the fix.
If its not the route that you want to go down that's fine but it seems like a good idea just to get this working for the impending JDK 9 release date later this month.
https://github.com/gradle/kotlin-dsl/pull/493