hallvard
10/30/2018, 11:47 AMplugins { 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:
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'