Skip to content

Commit 6566fce

Browse files
Publish only ZIP artifacts since the plugin has no xxx-client counterpart (opensearch-project#72) (opensearch-project#74)
(cherry picked from commit ac484d3) Signed-off-by: Andriy Redko <andriy.redko@aiven.io> 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>
1 parent 7601357 commit 6566fce

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/check.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ jobs:
1818
cache: gradle
1919
- name: Run Gradle (check)
2020
run: |
21-
./gradlew check
21+
./gradlew check
22+
- name: Run Gradle (assemble)
23+
run: |
24+
./gradlew assemble

build.gradle

+11-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ allprojects {
8787
}
8888
publications {
8989
// add license information to generated poms
90-
all {
90+
pluginZip(MavenPublication) { publication ->
9191
pom {
9292
name = "opensearch-custom-codecs"
9393
description = "OpenSearch plugin that implements custom compression codecs"
@@ -190,4 +190,13 @@ integTest {
190190
testClusters.integTest {
191191
testDistribution = "ARCHIVE"
192192
plugin(project.tasks.bundlePlugin.archiveFile)
193-
}
193+
}
194+
195+
tasks.withType(PublishToMavenRepository) {
196+
def predicate = provider {
197+
publication.name == "pluginZip"
198+
}
199+
onlyIf("Publishing only ZIP distributions") {
200+
predicate.get()
201+
}
202+
}

0 commit comments

Comments
 (0)