How can I create a MultiRelease jar (JPMS with Jav...
# gradle
h
How can I create a MultiRelease jar (JPMS with Java 8 and Java 9 support) with the MPP plugin without calling
jvm().withJava()
because it is deprecated with error in Gradle 9.0.0? I need MPP due to expect/actual in JVM code.
t
h
thanks, setting this property does work.
BTW using lazy apis for compilations don't work.
t
could you provide an example?
There is the warning:
The Kotlin source set jvm9Main was configured but not added to any Kotlin compilation.
and it fails later: https://gradle.com/s/vyro7ojdtlf44
t
yeah, it is known problem on Gradle/KMP side that we are finalizing configuration in late configuration stage which does not work well with other plugins
h
I just found another issue if you want to use Multi Release Jars and the new abiValidation: The property workaround does fix the task cycle, but causes the error untracked inputs. kover uses the jvm9 output without wiring the task dependency.
t
please file an issue for it with a repro