Skip to content

Commit

Permalink
Add tasks to publish generated plugin zips (#72)
Browse files Browse the repository at this point in the history
Along with plugin jars, plugin zips should also be published to
maven repo with right maven coordinates,
so user can download these plugins using dependancy model.

Signed-off-by: Vijayan Balasubramanian <[email protected]>
  • Loading branch information
VijayanB authored Jun 15, 2022
1 parent e670f9d commit 35cbe94
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.opensearch.gradle.test.RestIntegTestTask
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'opensearch.opensearchplugin'
apply plugin: 'opensearch.pluginzip'
apply plugin: 'opensearch.yaml-rest-test'
apply plugin: 'jacoco'

Expand Down Expand Up @@ -90,6 +91,29 @@ test {
systemProperty 'tests.security.manager', 'false'
}

publishing {
publications {
pluginZip(MavenPublication) { publication ->
pom {
name = pluginName
description = pluginDescription
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"
}
}
}
}
}
}


//****************************************************************************/
// Dependencies
Expand Down

0 comments on commit 35cbe94

Please sign in to comment.