Decouple persist tool from the distribution#404
Merged
daneshk merged 20 commits intoballerina-platform:mainfrom Jun 20, 2025
Merged
Decouple persist tool from the distribution#404daneshk merged 20 commits intoballerina-platform:mainfrom
daneshk merged 20 commits intoballerina-platform:mainfrom
Conversation
daneshk
commented
May 29, 2025
daneshk
commented
May 29, 2025
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #404 +/- ##
==========================================
- Coverage 85.81% 85.80% -0.02%
==========================================
Files 66 66
Lines 6241 6241
Branches 838 838
==========================================
- Hits 5356 5355 -1
Misses 647 647
- Partials 238 239 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
This PR decouples the persist tool from the distribution and introduces a new Gradle project for the persist tool along with corresponding configuration and test changes.
- Added a new persist-tool module with its own build script, Ballerina.toml, BalTool.toml, and README.
- Updated settings, build configurations, and test projects to reflect the decoupling and new persist-tool integration.
Reviewed Changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| settings.gradle | Added plugin management block and included the new persist-tool. |
| persist-tool/* | New persist-tool module files including build, source, and config. |
| persist-cli/build.gradle | Added manifest attributes for build artifacts. |
| persist-cli-tests/* | Updated tests with added logging and minor refactoring changes. |
| persist-cli-tests/build.gradle | Refactored copy tasks and added a new task to update bal-tools.toml. |
| examples/build.gradle | Updated tasks to incorporate the new persist-tool build and update flows. |
| gradle.properties | Updated version and dependency properties. |
| build-config/resources/* | New configuration files to support persist-tool. |
persist-cli-tests/src/test/java/io/ballerina/persist/tools/utils/GeneratedSourcesTestUtils.java
Outdated
Show resolved
Hide resolved
daneshk
commented
Jun 19, 2025
daneshk
commented
Jun 19, 2025
daneshk
commented
Jun 19, 2025
persist-cli-tests/src/test/java/io/ballerina/persist/tools/BuildCodeGeneratorTest.java
Outdated
Show resolved
Hide resolved
daneshk
commented
Jun 19, 2025
persist-cli-tests/src/test/java/io/ballerina/persist/tools/BuildCodeGeneratorTest.java
Outdated
Show resolved
Hide resolved
daneshk
commented
Jun 19, 2025
persist-cli-tests/src/test/java/io/ballerina/persist/tools/BuildCodeGeneratorTest.java
Outdated
Show resolved
Hide resolved
daneshk
commented
Jun 19, 2025
persist-cli-tests/src/test/java/io/ballerina/persist/tools/utils/GeneratedSourcesTestUtils.java
Outdated
Show resolved
Hide resolved
daneshk
commented
Jun 19, 2025
persist-cli-tests/src/test/java/io/ballerina/persist/tools/utils/GeneratedSourcesTestUtils.java
Outdated
Show resolved
Hide resolved
daneshk
commented
Jun 19, 2025
persist-cli-tests/src/test/java/io/ballerina/persist/tools/utils/GeneratedSourcesTestUtils.java
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Purpose
Fixes: ballerina-platform/ballerina-library#7962
Examples
Checklist