Browse Source

Configure publication only if project has maven publishing plugin

pull/603/head 0.4.0-build184
Shagen Ogandzhanian 3 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 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 -> settingsEvaluated { settings ->
settings.pluginManagement { settings.pluginManagement {
@ -39,6 +28,21 @@ settingsEvaluated { settings ->
} }
allprojects { 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 { buildscript {
repositories { repositories {
mavenCentral() mavenCentral()

Loading…
Cancel
Save