When publishing my mpp to maven, I first saw Gradl...
# gradle
h
When publishing my mpp to maven, I first saw Gradle refuse to do so, apparently because I had to set a groupid when using the maven-publish plugin. But I had the groupid defined in the gradle file on the very line below
plugins { id 'maven-publish' }
! The solution was to move the plugin declaration. As the
plugins {}
block refuses to appear after the `group()`and
version()
settings, I ended up with the following head of gradle file, which is not very elegant, but publishes to my maven repo without complaining:
Copy code
plugins {
    id 'kotlin-multiplatform' version '1.3.0'
//    id 'maven-publish'
}

group("com.pany")
version("2.0.0")

// this line cannot appear *before* the group and version lines above ...
apply plugin: 'maven-publish'