From fade828c5054fd90e59b159fe7e189e318404e11 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Sun, 17 Dec 2017 11:51:18 -0500 Subject: [PATCH] Fix publication of elasticsearch-cli to Maven This commit addresses the publication of the elasticsearch-cli to Maven. For now for simplicity we publish this to Maven so that it is available as a transitive dependency for any artifacts that depend on the core elasticsearch artifact. It is possible that in the future we can simply exclude this dependency but for now this is the safest and simplest approach that can happen in a patch release. Relates #27853 --- core/cli/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/cli/build.gradle b/core/cli/build.gradle index fc93523f6b7..6f0e2e55eec 100644 --- a/core/cli/build.gradle +++ b/core/cli/build.gradle @@ -20,6 +20,17 @@ import org.elasticsearch.gradle.precommit.PrecommitTasks apply plugin: 'elasticsearch.build' +apply plugin: 'nebula.optional-base' +apply plugin: 'nebula.maven-base-publish' +apply plugin: 'nebula.maven-scm' + +publishing { + publications { + nebula { + artifactId 'elasticsearch-cli' + } + } +} archivesBaseName = 'elasticsearch-cli'