Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publishing task #13

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ allprojects {

apply plugin: 'opensearch.opensearchplugin'
apply plugin: 'opensearch.internal-cluster-test'
apply plugin: 'opensearch.pluginzip'

opensearchplugin {
name 'opensearch-custom-codecs'
Expand All @@ -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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circling back #5 (comment), so the group should be "org.opensearch.plugin", I will update build.gradle

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this.

[root@dcda507af0e2 snapshots]# tree org/
org/
`-- opensearch
    `-- plugin
        `-- opensearch-custom-codecs
            |-- 3.0.0.0-SNAPSHOT
            |   |-- maven-metadata.xml
            |   |-- maven-metadata.xml.md5
            |   |-- maven-metadata.xml.sha1
            |   |-- maven-metadata.xml.sha256
            |   |-- maven-metadata.xml.sha512
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-javadoc.jar
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-javadoc.jar.md5
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-javadoc.jar.sha1
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-javadoc.jar.sha256
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-javadoc.jar.sha512
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-sources.jar
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-sources.jar.md5
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-sources.jar.sha1
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-sources.jar.sha256
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1-sources.jar.sha512
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.jar
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.jar.md5
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.jar.sha1
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.jar.sha256
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.jar.sha512
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.module
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.module.md5
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.module.sha1
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.module.sha256
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.module.sha512
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.pom
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.pom.md5
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.pom.sha1
            |   |-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.pom.sha256
            |   `-- opensearch-custom-codecs-3.0.0.0-20230908.172042-1.pom.sha512
            |-- maven-metadata.xml
            |-- maven-metadata.xml.md5
            |-- maven-metadata.xml.sha1
            |-- maven-metadata.xml.sha256
            `-- maven-metadata.xml.sha512

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
Expand Down
Loading