Добавлена проверка на http

This commit is contained in:
2025-06-10 15:25:38 +03:00
parent 197efd0354
commit 5124bac61b
3 changed files with 14 additions and 3 deletions

View File

@ -20,7 +20,10 @@ group = 'biz.redsoft.sample'
repositories { repositories {
maven { maven {
url project.properties.'biz.redsoft.private.repo' def repo = getProperty("biz.redsoft.private.repo")
url repo
if (repo.contains("http:/"))
allowInsecureProtocol = true
if (project.credentials.user != null && project.credentials.password != null) { if (project.credentials.user != null && project.credentials.password != null) {
credentials { credentials {
username project.credentials.user username project.credentials.user

View File

@ -1,7 +1,10 @@
repositories { repositories {
mavenLocal() mavenLocal()
maven { maven {
url project.properties.'biz.redsoft.public.repo' def repo = project.properties.'biz.redsoft.public.repo'
url repo
if (repo.contains("http:/"))
allowInsecureProtocol = true
if (project.credentials.user != null && project.credentials.password != null) { if (project.credentials.user != null && project.credentials.password != null) {
credentials { credentials {
username project.credentials.user username project.credentials.user

View File

@ -1,7 +1,12 @@
pluginManagement{ pluginManagement{
repositories { repositories {
mavenLocal() mavenLocal()
maven {url getProperty("biz.redsoft.public.repo") } maven {
def repo = getProperty("biz.redsoft.public.repo")
url repo
if (repo.contains("http:/"))
allowInsecureProtocol = true
}
} }
} }