diff --git a/build.gradle b/build.gradle index e2b6e30..96854c6 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