From 189ac81763ba2d592d05c364e2bfce602ce50ade Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 8 Sep 2023 15:24:51 +0000 Subject: [PATCH] Add publishing (#13) Signed-off-by: Sayali Gaikawad (cherry picked from commit 23089415765851255ec58508f39d9dedb95042b9) Signed-off-by: github-actions[bot] --- build.gradle | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/build.gradle b/build.gradle index f0431f1..b402e77 100644 --- a/build.gradle +++ b/build.gradle @@ -54,6 +54,7 @@ allprojects { apply plugin: 'opensearch.opensearchplugin' apply plugin: 'opensearch.internal-cluster-test' +apply plugin: 'opensearch.pluginzip' opensearchplugin { name 'opensearch-custom-codecs' @@ -67,6 +68,40 @@ dependencies { api "com.github.luben:zstd-jni:1.5.5-5" } +publishing { + publications { + pluginZip(MavenPublication) { publication -> + pom { + name = opensearchplugin.name + description = opensearchplugin.description + groupId = "org.opensearch.plugin" + licenses { + license { + name = "The Apache License, Version 2.0" + url = "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + } + developers { + developer { + name = "OpenSearch" + url = "https://github.com/opensearch-project/index-management" + } + } + } + } + } + repositories { + maven { + name = "Snapshots" + url = "https://aws.oss.sonatype.org/content/repositories/snapshots" + credentials { + username "$System.env.SONATYPE_USERNAME" + password "$System.env.SONATYPE_PASSWORD" + } + } + } +} + // ignore missing javadocs tasks.withType(Javadoc).configureEach { Javadoc javadoc -> // the -quiet here is because of a bug in gradle, in that adding a string option