From 6d417fa9bc443ff638e7099e25c93d7b71aa4cfe Mon Sep 17 00:00:00 2001 From: gsvic Date: Wed, 17 Jun 2020 22:16:22 +0300 Subject: [PATCH] Removed Nexus Plugin --- build.gradle | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 08ebb3e1..3f207a17 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,6 @@ plugins { id 'java-library' id 'idea' id 'maven-publish' - id "de.marcphilipp.nexus-publish" version "0.4.0" id 'signing' id 'com.github.sherter.google-java-format' version '0.8' id 'io.codearte.nexus-staging' version '0.12.0' @@ -203,19 +202,21 @@ publishing { } } } -} -nexusPublishing { repositories { maven { - nexusUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") - snapshotRepositoryUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/") - username = System.getenv('SONATYPE_USERNAME') - password = System.getenv('SONATYPE_PASSWORD') + def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" + def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl + credentials { + username System.getenv('SONATYPE_USERNAME') + password System.getenv('SONATYPE_PASSWORD') + } } } } + signing { sign publishing.publications.mavenJava sign configurations.archives