From 5b1b11b118e3c7de20543d6bb544059b2362e37f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergej=20Ko=C5=A1=C4=8Dejev?= Date: Wed, 9 Oct 2024 13:10:49 +0200 Subject: [PATCH] Remove old itemis Nexus repository --- build.gradle | 39 ++++++++++++--------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/build.gradle b/build.gradle index 5974cc3..756a223 100644 --- a/build.gradle +++ b/build.gradle @@ -280,35 +280,20 @@ def additionalPomInfo = { publishing { repositories { maven { - if (project.hasProperty('nexusUsername')) { - credentials { - username project.getProperty('nexusUsername') - password project.getProperty('nexusPassword') - } + name = "itemisCloud" + url = uri("https://artifacts.itemis.cloud/repository/maven-mps-releases/") + credentials { + username = project.findProperty("artifacts.itemis.cloud.user") + password = project.findProperty("artifacts.itemis.cloud.pw") } - url project.findProperty('repository') ?: 'https://projects.itemis.de/nexus/content/repositories/mbeddr' } - repositories { - if (project.hasProperty("artifacts.itemis.cloud.user") && project.hasProperty("artifacts.itemis.cloud.pw")) { - maven { - name = "itemisCloud" - url = project.version.contains("SNAPSHOT") - ? uri("https://artifacts.itemis.cloud/repository/maven-mps-snapshots/") - : uri("https://artifacts.itemis.cloud/repository/maven-mps-releases/") - credentials { - username = project.findProperty("artifacts.itemis.cloud.user") - password = project.findProperty("artifacts.itemis.cloud.pw") - } - } - } - maven { - name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/mbeddr/build.publish.mps") - if(project.hasProperty("gpr.token")) { - credentials { - username = project.findProperty("gpr.user") - password = project.findProperty("gpr.token") - } + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/mbeddr/build.publish.mps") + if (project.hasProperty("gpr.token")) { + credentials { + username = project.findProperty("gpr.user") + password = project.findProperty("gpr.token") } } }