diff --git a/build.gradle b/build.gradle index 5292894870..bf2d2c2ac9 100755 --- a/build.gradle +++ b/build.gradle @@ -301,6 +301,18 @@ publishing { } } } + maven { + name = "itemisCloud" + url = version.toString().endsWith("-SNAPSHOT") + ? uri("https://artifacts.itemis.cloud/repository/maven-mps-snapshots/") + : uri("https://artifacts.itemis.cloud/repository/maven-mps-releases/") + if (project.hasProperty("artifacts.itemis.cloud.user") && project.hasProperty("artifacts.itemis.cloud.pw")) { + credentials { + username = project.findProperty("artifacts.itemis.cloud.user") + password = project.findProperty("artifacts.itemis.cloud.pw") + } + } + } } repositories { if(currentBranch == "master" || currentBranch.startsWith("maintenance") || currentBranch.startsWith("mps")) {