From 67a06dc84f41ace153a9658d1fe2c1a0a2c86e06 Mon Sep 17 00:00:00 2001 From: Lanchon Date: Thu, 21 Sep 2017 23:39:12 -0300 Subject: [PATCH] Revert "Allow builds without OSSRH credentials" This reverts commit 4275a870d54a58b3bfbcf39416355431afc1f4fb. --- build.gradle | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index af196fe..d98a28a 100644 --- a/build.gradle +++ b/build.gradle @@ -100,14 +100,12 @@ uploadArchives { } } - if (project.hasProperty('ossrhUsername')) { - repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { - authentication userName: ossrhUsername, password: ossrhPassword - } + repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { + authentication userName: ossrhUsername, password: ossrhPassword + } - snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { - authentication userName: ossrhUsername, password: ossrhPassword - } + snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { + authentication userName: ossrhUsername, password: ossrhPassword } beforeDeployment {