Skip to content

Commit

Permalink
Uses custom plugin to publish zips to maven
Browse files Browse the repository at this point in the history
Signed-off-by: Clay Downs <[email protected]>
  • Loading branch information
downsrob committed May 17, 2022
1 parent a7fd6c4 commit c63c058
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 @@ -78,6 +78,7 @@ apply plugin: 'opensearch.rest-test'
apply plugin: 'io.gitlab.arturbosch.detekt'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'org.jetbrains.kotlin.plugin.allopen'
apply plugin: 'opensearch.pluginzip'

configurations.all {
if (it.state != Configuration.State.UNRESOLVED) return
Expand Down Expand Up @@ -194,6 +195,29 @@ repositories {
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
}

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

plugins.withId('java') {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
}
Expand Down

0 comments on commit c63c058

Please sign in to comment.