-
Notifications
You must be signed in to change notification settings - Fork 40
Create and publish snapshot version of data loader core #2736
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
Conversation
There was a problem hiding this 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'
| if (project.gradle.startParameter.taskNames.any { it.endsWith('publish') } || | ||
| project.gradle.startParameter.taskNames.any { it.endsWith('publishToMavenLocal') }) { |
Copilot
AI
Jun 5, 2025
There was a problem hiding this comment.
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.
| 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")) { |
komamitsu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
ypeckstadt
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
Torch3333
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
|
@brfrn169 san, |
data-loader/core/build.gradle
Outdated
| from components.java | ||
| pom { | ||
| name = 'ScalarDB Data Loader' | ||
| description = 'A tool for importing data to and from ScalarDB' |
There was a problem hiding this comment.
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)
| description = 'A tool for importing data to and from ScalarDB' | |
| description = 'A tool for exporting data from and importing data into ScalarDB' |
There was a problem hiding this comment.
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.
brfrn169
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
Co-authored-by: Peckstadt Yves <[email protected]>
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
data loader corein comments for release-snapshot workflow which is used to create snapshot versions.Checklist
Additional notes (optional)
NA
Release notes
NA