Skip to content

Comments

[Automated] Sync main after 1.3.0 release#43

Open
ballerina-bot wants to merge 3 commits intomainfrom
release-1.3.0
Open

[Automated] Sync main after 1.3.0 release#43
ballerina-bot wants to merge 3 commits intomainfrom
release-1.3.0

Conversation

@ballerina-bot
Copy link

@ballerina-bot ballerina-bot commented Feb 22, 2026

Sync main after 1.3.0 release

Summary

This pull request syncs the main branch following the 1.3.0 release. It includes version updates and dependency management changes to transition from development snapshots to stable release versions.

Changes

  • gradle.properties: Bumped the project version from 1.3.0-SNAPSHOT to 1.3.1-SNAPSHOT for the next development iteration
  • module-ballerina-xsd/BalTool.toml: Updated native JAR dependencies (xsd-cli and xsd-core) from SNAPSHOT versions to their stable 1.3.0 release equivalents

@coderabbitai
Copy link

coderabbitai bot commented Feb 22, 2026

📝 Walkthrough

Walkthrough

Version management updates across configuration files: gradle.properties incremented from 1.3.0-SNAPSHOT to 1.3.1-SNAPSHOT, while BalTool.toml dependency references (xsd-cli and xsd-core) transitioned from 1.3.0-SNAPSHOT to 1.3.0 release jar versions.

Changes

Cohort / File(s) Summary
Version Configuration
gradle.properties
Version bumped from 1.3.0-SNAPSHOT to 1.3.1-SNAPSHOT.
Dependency Management
module-ballerina-xsd/BalTool.toml
Updated xsd-cli and xsd-core dependency references from SNAPSHOT versions to release jar equivalents (1.3.0-SNAPSHOT.jar → 1.3.0.jar).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • Bump the version to 1.3.0 #42: Modifies the same versioning metadata files (gradle.properties and BalTool.toml) with version updates and SNAPSHOT to release transitions.

Suggested reviewers

  • shafreenAnfar
  • NipunaRanasinghe

Poem

🐰 A version hopped, from snap to release so clean,
Dependencies bundled in bundles pristine,
From SNAPSHOT dreams to reality's jar,
This configuration change takes us far! 📦✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is minimal and provides only a brief statement without following the repository's required template structure covering Purpose, Goals, Approach, testing, and other sections. Expand the description to follow the repository template, including Purpose (release synchronization), Goals, Approach, and relevant sections like test environment and security checks.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: syncing the main branch after the 1.3.0 release, which aligns with the version bump from 1.3.0 to 1.3.1-SNAPSHOT and dependency updates shown in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch release-1.3.0

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@module-ballerina-xsd/BalTool.toml`:
- Around line 5-8: BalTool.toml references hard-coded JAR names with 1.3.0 but
the project version is 1.3.1-SNAPSHOT; update the dependency path strings in
BalTool.toml (the entries containing "../xsd-cli/build/libs/xsd-cli-1.3.0.jar"
and "../xsd-core/build/libs/xsd-core-1.3.0.jar") to match the project version
(e.g., "../xsd-cli/build/libs/xsd-cli-1.3.1-SNAPSHOT.jar" and
"../xsd-core/build/libs/xsd-core-1.3.1-SNAPSHOT.jar") so the file names produced
by Gradle are found at runtime.

Comment on lines +5 to +8
path = "../xsd-cli/build/libs/xsd-cli-1.3.0.jar"

[[dependency]]
path = "../xsd-core/build/libs/xsd-core-1.3.0-SNAPSHOT.jar"
path = "../xsd-core/build/libs/xsd-core-1.3.0.jar"
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check version consistency between gradle.properties and BalTool.toml

echo "=== Version in gradle.properties ==="
if [ -f "gradle.properties" ]; then
    grep "^version=" gradle.properties
else
    echo "gradle.properties not found at root"
    find . -name "gradle.properties" -type f | head -5
fi

echo ""
echo "=== JAR versions referenced in BalTool.toml ==="
if [ -f "module-ballerina-xsd/BalTool.toml" ]; then
    cat "module-ballerina-xsd/BalTool.toml"
else
    echo "BalTool.toml not found"
fi

echo ""
echo "=== Checking build directory structure ==="
if [ -d "xsd-cli" ] || [ -d "xsd-core" ]; then
    echo "Found xsd-cli or xsd-core directories"
    find . -path "*/build/libs/*.jar" -type f 2>/dev/null | head -10
fi

Repository: ballerina-platform/xsd-tools

Length of output: 413


🏁 Script executed:

#!/bin/bash
# Check if xsd-cli and xsd-core have independent version configurations

echo "=== Checking xsd-cli/build.gradle ==="
if [ -f "xsd-cli/build.gradle" ]; then
    head -30 "xsd-cli/build.gradle"
    echo "..."
    grep -E "(version|jar|archivesBaseName)" "xsd-cli/build.gradle" | head -10
else
    echo "xsd-cli/build.gradle not found"
fi

echo ""
echo "=== Checking xsd-core/build.gradle ==="
if [ -f "xsd-core/build.gradle" ]; then
    head -30 "xsd-core/build.gradle"
    echo "..."
    grep -E "(version|jar|archivesBaseName)" "xsd-core/build.gradle" | head -10
else
    echo "xsd-core/build.gradle not found"
fi

echo ""
echo "=== Checking directory structure for xsd-cli ==="
ls -la xsd-cli/ 2>/dev/null | head -15

echo ""
echo "=== Checking directory structure for xsd-core ==="
ls -la xsd-core/ 2>/dev/null | head -15
</parameter>

Repository: ballerina-platform/xsd-tools

Length of output: 5075


🏁 Script executed:

#!/bin/bash
# Search for any version references or JAR paths that might explain the mismatch

echo "=== All version references in gradle.properties ==="
cat gradle.properties | grep -E "(version|Version)"

echo ""
echo "=== Checking if 1.3.0 appears elsewhere in the codebase ==="
rg "1\.3\.0" --type gradle --type toml --type properties 2>/dev/null | head -20

echo ""
echo "=== Checking settings.gradle or other root config files ==="
if [ -f "settings.gradle" ]; then
    cat settings.gradle
fi

Repository: ballerina-platform/xsd-tools

Length of output: 2544


Version mismatch: BalTool.toml references 1.3.0.jar but project version is 1.3.1-SNAPSHOT.

The dependency paths reference 1.3.0.jar files, but gradle.properties sets version=1.3.1-SNAPSHOT. When building, Gradle will produce JARs named xsd-cli-1.3.1-SNAPSHOT.jar and xsd-core-1.3.1-SNAPSHOT.jar, causing BalTool to fail loading the non-existent 1.3.0.jar files.

🐛 Proposed fix to align JAR versions with project version
 [[dependency]]
-path = "../xsd-cli/build/libs/xsd-cli-1.3.0.jar"
+path = "../xsd-cli/build/libs/xsd-cli-1.3.1-SNAPSHOT.jar"

 [[dependency]]
-path = "../xsd-core/build/libs/xsd-core-1.3.0.jar"
+path = "../xsd-core/build/libs/xsd-core-1.3.1-SNAPSHOT.jar"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
path = "../xsd-cli/build/libs/xsd-cli-1.3.0.jar"
[[dependency]]
path = "../xsd-core/build/libs/xsd-core-1.3.0-SNAPSHOT.jar"
path = "../xsd-core/build/libs/xsd-core-1.3.0.jar"
path = "../xsd-cli/build/libs/xsd-cli-1.3.1-SNAPSHOT.jar"
[[dependency]]
path = "../xsd-core/build/libs/xsd-core-1.3.1-SNAPSHOT.jar"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@module-ballerina-xsd/BalTool.toml` around lines 5 - 8, BalTool.toml
references hard-coded JAR names with 1.3.0 but the project version is
1.3.1-SNAPSHOT; update the dependency path strings in BalTool.toml (the entries
containing "../xsd-cli/build/libs/xsd-cli-1.3.0.jar" and
"../xsd-core/build/libs/xsd-core-1.3.0.jar") to match the project version (e.g.,
"../xsd-cli/build/libs/xsd-cli-1.3.1-SNAPSHOT.jar" and
"../xsd-core/build/libs/xsd-core-1.3.1-SNAPSHOT.jar") so the file names produced
by Gradle are found at runtime.

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.

2 participants