Updated with more details :
My objective is to set source of below code .
source(sourceSets.map { it.javaDirectories }.flatten())
above code working fine with jdk 1.8 but when I changed to jdk 11 then
Task :quality-tools:compileKotlin FAILED
The kotlin-dsl
plugin applied to project ':quality-tools' enables experimental Kotlin compiler features.
My import inside Kotlin file :
import jdk.nashorn.internal.objects.NativeRegExp.source
Console error : Symbol is declared in module 'jdk.scripting.nashorn' which does not export package 'jdk.nashorn.internal.objects'
My code inside same Kotlin file:
source(sourceSets.map { it.javaDirectories }.flatten())
Console error :Symbol is declared in module 'jdk.scripting.nashorn' which does not export package 'jdk.nashorn.internal.objects' Build scan for your reference :
https://gradle.com/s/neicp3tzhs3yo
#TODO
- If symbol is declared in module ‘jdk.scripting.nashorn' then how can I export package jdk.nashorn.internal.objects' in jdk 11 or any alternative to set source as I mentioned above ?
I found this link when I investigated further. https://docs.oracle.com/javase/9/docs/api/jdk.scripting.nashorn-summary.html
Thanks Jitendra