From 12a0573902e642d3b0f2e58faa966fee147cd613 Mon Sep 17 00:00:00 2001 From: "sergey.tolstyh" Date: Tue, 31 Mar 2026 14:10:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=83=D0=B1=D0=BB=D0=B8=D0=BA=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B8=20=D0=B0=D1=80=D1=82=D0=B5=D1=84=D0=B0=D0=BA?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=20x3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index fd0efac..9ede447 100644 --- a/build.gradle +++ b/build.gradle @@ -124,22 +124,16 @@ release { publishing { repositories { maven { - def isRepoCredetionals = project.hasProperty('biz.redsoft.repo.user') && project.hasProperty('biz.redsoft.repo.password') - def isCredentialsInsideBuildScript = project.credentials.user != null && project.credentials.password != null - println(isRepoCredetionals ? "Using repoCredentials for publish..." : - isCredentialsInsideBuildScript ? "Using buildScript credentials for publish..." : "Credentials are not presented!!!") - if (isRepoCredetionals) { - credentials { - username project.'biz.redsoft.repo.user' - password project.'biz.redsoft.repo.password' - } - } else if (isCredentialsInsideBuildScript) { + def repo = getProperty("biz.redsoft.private.repo") + url repo + if (repo.contains("http:/")) + allowInsecureProtocol = true + if (project.credentials.user != null && project.credentials.password != null) { credentials { username project.credentials.user password project.credentials.password } } - url project.'biz.redsoft.private.repo' } } publications {