plugins { id("io.github.gradle-nexus.publish-plugin") version "1.1.0" } nexusPublishing { repositories { create("sonatype") { nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) val ossrhUsername: String? by project val ossrhPassword: String? by project username.set(ossrhUsername) password.set(ossrhPassword) } } }