https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

Robert Jaros

03/07/2020, 12:46 PM
Is publishing gradle metadata always enabled now? I got this warning from gradle 6.0.1:
enableFeaturePreview('GRADLE_METADATA') has been deprecated. This is scheduled to be removed in Gradle 7.0. The feature flag is no longer relevant, please remove it from your settings file.
If I remove this option from my
settings.gradle.kts
gradle metadata still seems to be published. Is there any option to disable this and publish only classic artifacts?
d

Dominaezzz

03/07/2020, 12:49 PM
It is published by default from 6.0.
You could disable the metadata publication task but that's about it.
l

louiscad

03/07/2020, 1:02 PM
@Robert Jaros Why do you want to disable publication of gradle metadata?
r

Robert Jaros

03/07/2020, 1:02 PM
see my next question
I can't force my compiler plugin to work with multiplatform artifacts
I'd rather disable the whole thing and use just plain simple artifacts ;)
l

louiscad

03/07/2020, 1:08 PM
Just like Dominic recommended, disabling the metadata generation task (using
named
+
enable = false
) is the best workaround I'm aware of yet, which is supported by Gradle (although not made extremely straightforward to use as you need to find the name of the task).
3 Views