I’ve got a kotlin library that I want to publish. ...
# gradle
s
I’ve got a kotlin library that I want to publish. I have set
kotlinOptions.jvmTarget=1.8
to ensure Java 8 compatibility. When I run the build under Java 8, the module builds with a variant that includes
"org.gradle.jvm.version": 8
. However, if I run the same build under Java 11, the variant changes to 11. If I am building a library using Java 11 that I want to support Java 8, how do I do this? My understanding was that setting
kotlinOptions.jvmTarget=1.8
should have ensured that the variant was set to 8.
n
i believe that
"org.gradle.jvm.version": 8
refers to the jvm version used to run the gradle build. is there an issue that this is causing?