From 21c6ac10fb0783b27ed5c447a2fe7a1a6183057f Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Tue, 20 Nov 2018 21:42:03 +0100 Subject: [PATCH] Use nexus-publish plugin --- build.gradle | 1 + gradle/publishing.gradle | 13 +------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index f122d7487de1..f028f0cdd3cf 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,7 @@ plugins { id 'org.ajoberstar.git-publish' version '1.0.1' apply false id 'org.jetbrains.kotlin.jvm' version '1.2.61' apply false id 'com.github.johnrengelman.shadow' version '2.0.4' apply false + id 'de.marcphilipp.nexus-publish' version '0.1.0' apply false } buildScan { diff --git a/gradle/publishing.gradle b/gradle/publishing.gradle index 150812024420..1c49f009a205 100644 --- a/gradle/publishing.gradle +++ b/gradle/publishing.gradle @@ -1,4 +1,4 @@ -apply plugin: 'maven-publish' +apply plugin: 'de.marcphilipp.nexus-publish' apply plugin: 'signing' def isSnapshot = project.version.contains('SNAPSHOT') @@ -70,15 +70,4 @@ publishing { } } } - repositories { - maven { - def stagingRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' - def snapshotRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/' - url isSnapshot ? snapshotRepoUrl : stagingRepoUrl - credentials { - username = rootProject.findProperty('ossrhUsername') ?: '' - password = rootProject.findProperty('ossrhPassword') ?: '' - } - } - } }