Is publishing gradle metadata always enabled now? ...
# multiplatform
r
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
It is published by default from 6.0.
You could disable the metadata publication task but that's about it.
l
@Robert Jaros Why do you want to disable publication of gradle metadata?
r
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
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).