Skip to content

Commit

Permalink
Add tasks to publish zips for Notifications and Notifications Core pl…
Browse files Browse the repository at this point in the history
…ugins (#484) (#485)

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit dae0899)

Co-authored-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
  • Loading branch information
opensearch-trigger-bot[bot] and qreshi committed Jul 20, 2022
1 parent e24ccf1 commit 5676f4f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions notifications/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down
24 changes: 24 additions & 0 deletions notifications/notifications/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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")
}
Expand Down

0 comments on commit 5676f4f

Please sign in to comment.