https://kotlinlang.org logo
l

louiscad

04/12/2019, 1:12 PM
Hi, is
enableFeaturePreview("GRADLE_METADATA")
still needed for Multiplatform projects on Gradle 5.3.1, where gradle metadata is stable?
j

Jurriaan Mous

04/12/2019, 1:17 PM
Copy code
However, Gradle 5.3 will not automatically publish it by default — that will come in 6.0. You can publish Gradle Module Metadata today, but you have to opt into its publication by using either the Maven Publish or Ivy Publish plugins and enabling the experimental publishing feature by adding the following line to your settings script:

settings.gradle(.kts)

enableFeaturePreview("GRADLE_METADATA")
Seems from Gradle 6 and higher: https://blog.gradle.org/gradle-metadata-1.0
h

h0tk3y

04/12/2019, 1:39 PM
Yes, it's still needed. If you don't add it, Gradle 5.3+ will read the module metadata when resolving dependencies but won't write it during publishing.
👍 1
r

ribesg

04/12/2019, 1:42 PM
So it’s still needed for libraries but it’s no longer needed for apps, right?
👍 1
h

h0tk3y

04/12/2019, 1:43 PM
Yes.
5 Views