From 9a16491ebf58e0c0b7dad3dcf51690367cb5202e Mon Sep 17 00:00:00 2001
From: Ryan Ernst <ryan@iernst.net>
Date: Thu, 9 Aug 2018 10:11:08 -0700
Subject: [PATCH] Build: Add back setting artifact id of pom for rest high
 level client (#32731)

This commit adds back the publishing section that sets the artifact id
of the generated pom file for the high level rest client. This was
accidentally removed during a consolidationo of the shadow plugin logic.
---
 client/rest-high-level/build.gradle | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/client/rest-high-level/build.gradle b/client/rest-high-level/build.gradle
index 65c5d094c71..6f5eab6e1db 100644
--- a/client/rest-high-level/build.gradle
+++ b/client/rest-high-level/build.gradle
@@ -30,6 +30,14 @@ apply plugin: 'com.github.johnrengelman.shadow'
 group = 'org.elasticsearch.client'
 archivesBaseName = 'elasticsearch-rest-high-level-client'
 
+publishing {
+  publications {
+    nebula {
+      artifactId = archivesBaseName
+    }
+  }
+}
+
 //we need to copy the yaml spec so we can check naming (see RestHighlevelClientTests#testApiNamingConventions)
 Task copyRestSpec = RestIntegTestTask.createCopyRestSpecTask(project, Providers.FALSE)
 test.dependsOn(copyRestSpec)