Open jGleitz opened 3 years ago
In #964 @raniejade mentioned that v2.0.15 was published without Gradle metadata. I think this regression was introduced by adding this metadata.
Yeah, unintended side-effect. A solution perhaps is to explicitly tell the kotlin plugin the JDK target. @sh-soltanpour are you able to look at this? Thanks for the report @jGleitz!
Looks like we need to set org.gradle.jvm.version
attribute to 8. Also apparently as a workaround you can do this https://docs.gradle.org/current/userguide/component_metadata_rules.html. Apologies for the delay, I'm a bit busy with my personal life atm.
Attributes can be set via https://docs.gradle.org/current/userguide/variant_attributes.html#sec:declaring_attributes.
Upgrading to v2.0.16 leads to the error message below in Gradle when running in Java 8. Since v2.0.15 worked fine with Java 8, I think that this is a regression that should be fixed by correcting the Gradle metadata file of the artefacts.