Thread
#multiplatform
    louiscad

    louiscad

    3 years ago
    Hi, is
    enableFeaturePreview("GRADLE_METADATA")
    still needed for Multiplatform projects on Gradle 5.3.1, where gradle metadata is stable?
    Jurriaan Mous

    Jurriaan Mous

    3 years ago
    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
    h0tk3y

    h0tk3y

    3 years ago
    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.
    r

    ribesg

    3 years ago
    So it’s still needed for libraries but it’s no longer needed for apps, right?
    h0tk3y

    h0tk3y

    3 years ago
    Yes.