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") } } }