Skip to content

Commit 189ac81

Browse files
Add publishing (#13)
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com> (cherry picked from commit 2308941) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 7647303 commit 189ac81

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

build.gradle

+35
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ allprojects {
5454

5555
apply plugin: 'opensearch.opensearchplugin'
5656
apply plugin: 'opensearch.internal-cluster-test'
57+
apply plugin: 'opensearch.pluginzip'
5758

5859
opensearchplugin {
5960
name 'opensearch-custom-codecs'
@@ -67,6 +68,40 @@ dependencies {
6768
api "com.github.luben:zstd-jni:1.5.5-5"
6869
}
6970

71+
publishing {
72+
publications {
73+
pluginZip(MavenPublication) { publication ->
74+
pom {
75+
name = opensearchplugin.name
76+
description = opensearchplugin.description
77+
groupId = "org.opensearch.plugin"
78+
licenses {
79+
license {
80+
name = "The Apache License, Version 2.0"
81+
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
82+
}
83+
}
84+
developers {
85+
developer {
86+
name = "OpenSearch"
87+
url = "https://github.com/opensearch-project/index-management"
88+
}
89+
}
90+
}
91+
}
92+
}
93+
repositories {
94+
maven {
95+
name = "Snapshots"
96+
url = "https://aws.oss.sonatype.org/content/repositories/snapshots"
97+
credentials {
98+
username "$System.env.SONATYPE_USERNAME"
99+
password "$System.env.SONATYPE_PASSWORD"
100+
}
101+
}
102+
}
103+
}
104+
70105
// ignore missing javadocs
71106
tasks.withType(Javadoc).configureEach { Javadoc javadoc ->
72107
// the -quiet here is because of a bug in gradle, in that adding a string option

0 commit comments

Comments
 (0)