Skip to content

Commit

Permalink
Publish only ZIP artifacts since the plugin has no xxx-client counter…
Browse files Browse the repository at this point in the history
…part (#72)

Signed-off-by: Andriy Redko <[email protected]>
(cherry picked from commit ac484d3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Oct 4, 2023
1 parent 7601357 commit 7156a45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ jobs:
cache: gradle
- name: Run Gradle (check)
run: |
./gradlew check
./gradlew check
- name: Run Gradle (assemble)
run: |
./gradlew assemble
13 changes: 11 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ allprojects {
}
publications {
// add license information to generated poms
all {
pluginZip(MavenPublication) { publication ->
pom {
name = "opensearch-custom-codecs"
description = "OpenSearch plugin that implements custom compression codecs"
Expand Down Expand Up @@ -190,4 +190,13 @@ integTest {
testClusters.integTest {
testDistribution = "ARCHIVE"
plugin(project.tasks.bundlePlugin.archiveFile)
}
}

tasks.withType(PublishToMavenRepository) {
def predicate = provider {
publication.name == "pluginZip"
}
onlyIf("Publishing only ZIP distributions") {
predicate.get()
}
}

0 comments on commit 7156a45

Please sign in to comment.