Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.10] Publish only ZIP artifacts since the plugin has no xxx-client counterpart #74

Merged
merged 1 commit into from
Oct 5, 2023
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
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()
}
}