diff --git a/build.gradle b/build.gradle index adea4eb..1ba3342 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { id 'jacoco' id 'com.github.kt3k.coveralls' version '2.8.2' id 'com.palantir.git-version' version '0.12.3' - id 'io.github.gradle-nexus.publish-plugin' version '1.1.0' + id 'io.github.gradle-nexus.publish-plugin' version '2.0.0' } repositories { @@ -86,12 +86,12 @@ def signingPassword = findProperty("signingPassword") publishing { publications { mavenJava(MavenPublication) { + from(components.java) + groupId = "com.namehillsoftware" artifactId = 'handoff' version = version - from components.java - pom { name = 'handoff' description = 'A Clean Continuations Library for Java' @@ -115,18 +115,6 @@ publishing { } } } - repositories { - maven { - // change URLs to point to your repos, e.g. http://my.org/repo - def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" - url = isRelease ? releasesRepoUrl : snapshotsRepoUrl - credentials { - username sonatypeUsername - password sonatypePassword - } - } - } } nexusPublishing {