diff --git a/ci/docker/compose-web/init.gradle b/ci/docker/compose-web/init.gradle index 5e24792399..4a8455696a 100644 --- a/ci/docker/compose-web/init.gradle +++ b/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()