From bf46b244bb1dfbf1dacf465c502a4d4022947d5c Mon Sep 17 00:00:00 2001 From: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com> Date: Tue, 19 Jul 2022 11:20:08 -0700 Subject: [PATCH] Add tasks to publish zips for Notifications and Notifications Core plugins Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com> --- notifications/core/build.gradle | 24 ++++++++++++++++++++++++ notifications/notifications/build.gradle | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/notifications/core/build.gradle b/notifications/core/build.gradle index 778bcc6b..b9027312 100644 --- a/notifications/core/build.gradle +++ b/notifications/core/build.gradle @@ -20,6 +20,7 @@ repositories { } apply plugin: 'opensearch.opensearchplugin' +apply plugin: 'opensearch.pluginzip' apply plugin: 'opensearch.java' apply plugin: 'opensearch.testclusters' apply plugin: 'opensearch.java-rest-test' @@ -38,6 +39,29 @@ opensearchplugin { classname 'org.opensearch.notifications.core.NotificationCorePlugin' } +publishing { + publications { + pluginZip(MavenPublication) { publication -> + pom { + name = "opensearch-notifications-core" + description = "OpenSearch Notifications Core 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/notifications" + } + } + } + } + } +} + task integTest(type: RestIntegTestTask) { description = "Run tests against a cluster that has security enabled" testClassesDirs = sourceSets.test.output.classesDirs diff --git a/notifications/notifications/build.gradle b/notifications/notifications/build.gradle index f42b5567..9901115e 100644 --- a/notifications/notifications/build.gradle +++ b/notifications/notifications/build.gradle @@ -17,6 +17,7 @@ apply plugin: 'java' apply plugin: 'jacoco' apply plugin: 'idea' apply plugin: 'opensearch.opensearchplugin' +apply plugin: 'opensearch.pluginzip' apply plugin: 'opensearch.testclusters' apply plugin: 'org.jetbrains.kotlin.jvm' apply plugin: 'org.jetbrains.kotlin.plugin.allopen' @@ -34,6 +35,29 @@ opensearchplugin { extendedPlugins = ['opensearch-notifications-core'] } +publishing { + publications { + pluginZip(MavenPublication) { publication -> + pom { + name = "opensearch-notifications" + description = "OpenSearch Notifications 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/notifications" + } + } + } + } + } +} + allOpen { annotation("org.opensearch.notifications.util.OpenForTesting") }