Skip to content

create directory /direct-query to contain async-query-core shadow JAR to the repository with all the necessary Maven metadata including the commit ID.#3636

Merged
Swiddis merged 7 commits intoopensearch-project:poc/commit-metadatafrom
ahkcs:poc/commit-metadata
May 20, 2025

Conversation

@ahkcs
Copy link
Copy Markdown
Collaborator

@ahkcs ahkcs commented May 19, 2025

Overview

This workflow automates the process of building and publishing OpenSearch artifacts to a Maven repository. Specifically, it builds the async-query-core shadow JAR and publishes it to the Sonatype snapshots repository under the org.opensearch.direct-query-poc group ID.

Key Operations

Shadow JAR Building and Processing

Maven Repository Publishing

Employs the standard OpenSearch publish-snapshot.sh script to:
Upload the shadow JAR and associated files
Generate and upload Maven metadata files

Downloads the generated Maven metadata XML file
Adds the commit ID to the metadata for improved traceability
Re-uploads the enhanced metadata file

Also publishes the standard plugin ZIP package using the Gradle task: publishPluginZipPublicationToSnapshotsRepository
Output

The workflow publishes the shadow JAR and all required metadata to: https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/direct-query-poc/async-query-core/{VERSION}-SNAPSHOT/

The published JAR can then be used as a dependency in other projects that need the functionality provided by the async-query-core module.

…ect-query

Signed-off-by: Kai Huang <ahkcs@amazon.com>
ahkcs added 2 commits May 19, 2025 15:01
Signed-off-by: Kai Huang <ahkcs@amazon.com>
Signed-off-by: Kai Huang <ahkcs@amazon.com>
Copy link
Copy Markdown
Collaborator

@noCharger noCharger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's only publish async-query-core jar, not everything from sql. Also let's create poc version.

ahkcs added 2 commits May 20, 2025 12:21
Signed-off-by: Kai Huang <ahkcs@amazon.com>
Signed-off-by: Kai Huang <ahkcs@amazon.com>
@ahkcs ahkcs changed the title Mirroring all the content from /plugin/opensearch-sql-plugin/ to /direct-query create directory /direct-query to contain async-query-core shadow JAR to the repository with all the necessary Maven metadata including the commit ID. May 20, 2025
Signed-off-by: Kai Huang <ahkcs@amazon.com>
Copy link
Copy Markdown
Collaborator

@dai-chen dai-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you elaborate what does this PR do? Especially, the "Mirroring" approach in PR description.

Signed-off-by: Kai Huang <ahkcs@amazon.com>
@Swiddis Swiddis merged commit c06092e into opensearch-project:poc/commit-metadata May 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants