Skip to content

Conversation

@inv-jishnu
Copy link
Contributor

Description

I have added changes to create and publish snap shot version of data loader core to sonatype repository.
This was added so that the data loader API can use the snapshot version in it.

Related issues and/or PRs

NA

Changes made

  • Added gradle changes to data loader core build.gradle file (added changes same to schema loader build.gradle file)
  • Updated to mention data loader core in comments for release-snapshot workflow which is used to create snapshot versions.

Checklist

The following is a best-effort checklist. If any items in this checklist are not applicable to this PR or are dependent on other, unmerged PRs, please still mark the checkboxes after you have read and understood each item.

  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes.
  • I have considered whether similar issues could occur in other products, components, or modules if this PR is for bug fixes.
  • Any remaining open issues linked to this PR are documented and up-to-date (Jira, GitHub, etc.).
  • Tests (unit, integration, etc.) have been added for the changes.
  • My changes generate no new warnings.
  • Any dependent changes in other PRs have been merged and published.

Additional notes (optional)

NA

Release notes

NA

@inv-jishnu inv-jishnu self-assigned this Jun 4, 2025
@inv-jishnu inv-jishnu added the enhancement New feature or request label Jun 4, 2025
@inv-jishnu inv-jishnu marked this pull request as draft June 4, 2025 11:48
@ypeckstadt ypeckstadt marked this pull request as ready for review June 5, 2025 00:21
@ypeckstadt ypeckstadt marked this pull request as draft June 5, 2025 00:22
@ypeckstadt ypeckstadt marked this pull request as ready for review June 5, 2025 00:23
@ypeckstadt ypeckstadt requested review from a team, Torch3333, brfrn169, Copilot, feeblefakie, komamitsu and ypeckstadt and removed request for a team June 5, 2025 00:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces Gradle configuration changes to enable publishing a snapshot version of the data loader core to the Sonatype repository.

  • Adds Maven publishing, signing, and publication configuration to the data-loader/core/build.gradle file.
  • Updates the release-snapshot workflow to include scalardb-data-loader-core in the snapshot upload step.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
data-loader/core/build.gradle Adds Maven publishing, signing, and conditional disabling of the shadowJar for publish tasks.
.github/workflows/release-snapshot.yaml Updates the workflow name to include scalardb-data-loader-core in the snapshot upload step.
Comments suppressed due to low confidence (1)

data-loader/core/build.gradle:57

  • The artifactId 'scalardb-data-loader' is inconsistent with the archivesBaseName 'scalardb-data-loader-core'. Consider aligning them for clarity in published artifacts.
artifactId = 'scalardb-data-loader'

Comment on lines +48 to +49
if (project.gradle.startParameter.taskNames.any { it.endsWith('publish') } ||
project.gradle.startParameter.taskNames.any { it.endsWith('publishToMavenLocal') }) {
Copy link

Copilot AI Jun 5, 2025

Choose a reason for hiding this comment

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

[nitpick] Using broad string matching to detect publish tasks for disabling shadowJar might be fragile; consider checking for explicit task names to avoid unintended side effects.

Suggested change
if (project.gradle.startParameter.taskNames.any { it.endsWith('publish') } ||
project.gradle.startParameter.taskNames.any { it.endsWith('publishToMavenLocal') }) {
if (project.gradle.taskGraph.hasTask(":publish") ||
project.gradle.taskGraph.hasTask(":publishToMavenLocal")) {

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@komamitsu komamitsu left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

Copy link
Contributor

@ypeckstadt ypeckstadt left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Upload SNAPSHOT versions for scalardb, scalardb-schema-loader, and scalardb-integration-test to Maven Snapshot Repository
- name: Upload SNAPSHOT versions for scalardb, scalardb-schema-loader, scalardb-data-loader-core, and scalardb-integration-test to Maven Snapshot Repository
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please make the same change for the follows:

- name: Upload scalardb, scalardb-schema-loader, and scalardb-integration-test to Maven Central Repository

Copy link
Contributor

@Torch3333 Torch3333 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@inv-jishnu inv-jishnu requested a review from brfrn169 June 5, 2025 05:30
@inv-jishnu
Copy link
Contributor Author

@brfrn169 san,
I have made changes as per your feedback,
PTAL when you get a chance.
Thank you.

from components.java
pom {
name = 'ScalarDB Data Loader'
description = 'A tool for importing data to and from ScalarDB'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe exporting is necessary? (CC: @ypeckstadt, @josh-wong)

Suggested change
description = 'A tool for importing data to and from ScalarDB'
description = 'A tool for exporting data from and importing data into ScalarDB'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brfrn169 san,
I have updated the description.
Thank you.

Copy link
Collaborator

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@ypeckstadt ypeckstadt merged commit 3b44fc7 into master Jun 6, 2025
55 checks passed
@ypeckstadt ypeckstadt deleted the feat/data-loader/core-snapshot-release branch June 6, 2025 01:43
feeblefakie pushed a commit that referenced this pull request Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants