Browse Source

Configure publication only if project has maven publishing plugin

pull/603/head 0.4.0-build184
Shagen Ogandzhanian 4 years ago
parent
commit
8040ca67e1
  1. 26
      ci/docker/compose-web/init.gradle

26
ci/docker/compose-web/init.gradle

@ -11,17 +11,6 @@ rootProject {
apply plugin: com.dorongold.gradle.tasktree.TaskTreePlugin
}
publishing {
repositories {
maven {
url "https://maven.pkg.jetbrains.space/public/p/compose/dev"
credentials {
username = project.hasProperty("COMPOSE_REPO_USERNAME") ? "$COMPOSE_REPO_USERNAME" : ""
password = project.hasProperty("COMPOSE_REPO_KEY") ? "$COMPOSE_REPO_KEY" : ""
}
}
}
}
settingsEvaluated { settings ->
settings.pluginManagement {
@ -39,6 +28,21 @@ settingsEvaluated { settings ->
}
allprojects {
pluginManager.withPlugin("maven-publish") {
publishing {
repositories {
maven {
url "https://maven.pkg.jetbrains.space/public/p/compose/dev"
credentials {
username = project.hasProperty("COMPOSE_REPO_USERNAME") ? "$COMPOSE_REPO_USERNAME" : ""
password = project.hasProperty("COMPOSE_REPO_KEY") ? "$COMPOSE_REPO_KEY" : ""
}
}
}
}
}
buildscript {
repositories {
mavenCentral()

Loading…
Cancel
Save