Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ See the [CONTRIBUTING guide](./CONTRIBUTING.md#Changelog) for instructions on ho
### Infrastructure
### Documentation
### Maintenance
* Persist necessary license and developer information in maven pom ([#732](https://github.com/opensearch-project/geospatial/pull/732))
### Refactoring

## [Unreleased 2.x](https://github.com/opensearch-project/geospatial/compare/2.19...2.x)
Expand Down
32 changes: 19 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ test {
include '**/*Tests.class'
systemProperty 'tests.security.manager', 'false'
}

publishing {
repositories {
maven {
Expand All @@ -138,24 +137,31 @@ publishing {
name = pluginName
description = pluginDescription
groupId = "org.opensearch.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/geospatial"
}
}
}
}
all {
pom {
name = pluginName
description = pluginDescription
}
pom.withXml { XmlProvider xml ->
Node node = xml.asNode()
node.appendNode('inceptionYear', '2021')

Node license = node.appendNode('licenses').appendNode('license')
license.appendNode('name', "The Apache License, Version 2.0")
license.appendNode('url', "http://www.apache.org/licenses/LICENSE-2.0.txt")

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



configurations {
zipArchive
}
Expand Down
26 changes: 13 additions & 13 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ publishing {
}
}
publications {
pluginZip(MavenPublication) { publication ->
all {
pom {
name = "opensearch-geospatial-client"
description = 'OpenSearch Geospatial client'
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/geospatial"
}
}
}
pom.withXml { XmlProvider xml ->
Node node = xml.asNode()
node.appendNode('inceptionYear', '2021')

Node license = node.appendNode('licenses').appendNode('license')
license.appendNode('name', "The Apache License, Version 2.0")
license.appendNode('url', "http://www.apache.org/licenses/LICENSE-2.0.txt")

Node developer = node.appendNode('developers').appendNode('developer')
developer.appendNode('name', 'OpenSearch')
developer.appendNode('url', 'https://github.com/opensearch-project/geospatial')
}
}
}
Expand Down
Loading