diff --git a/build.gradle b/build.gradle index 38be8951a45..58477122007 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,14 @@ if (project.projectDir.name != 'x-plugins') { throw new GradleException('You must checkout x-plugins in a directory named x-plugins next to elasticsearch') } +subprojects { + // we must not publish to sonatype until we have set up x-plugins to only publish the parts we want to publish! + if (project.plugins.hasPlugin('com.bmuschko.nexus')) { + install.enabled = false + uploadArchives.enabled = false + } +} + /* elasticsearch-releases