Skip to content

Commit

Permalink
Updated POM publishing (#903) (#905)
Browse files Browse the repository at this point in the history
* Updated POM publishing



* Added description, licenses and developer information



---------


(cherry picked from commit 2af7ee8)

Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent ac6fd91 commit f05c27d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,34 @@ allprojects {

group 'org.opensearch.sdk'

allprojects {
// Default to the apache license
project.ext.licenseName = 'The Apache Software License, Version 2.0'
project.ext.licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
publishing {
publications {
// add license information to generated poms
all {
pom {
name = "opensearch-sdk-java"
}
pom.withXml { XmlProvider xml ->
Node node = xml.asNode()
node.appendNode('description', 'OpenSearch Java SDK Client')

Node license = node.appendNode('licenses').appendNode('license')
license.appendNode('name', project.licenseName)
license.appendNode('url', project.licenseUrl)

Node developer = node.appendNode('developers').appendNode('developer')
developer.appendNode('name', 'OpenSearch')
developer.appendNode('url', 'https://github.com/opensearch-project/opensearch-sdk-java')
}
}
}
}
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down

0 comments on commit f05c27d

Please sign in to comment.