[Automated] Sync master after 4.0.0 release#864
[Automated] Sync master after 4.0.0 release#864ballerina-bot wants to merge 3 commits intomasterfrom
Conversation
📝 WalkthroughWalkthroughTwo configuration files updated to advance build versions: the compiler plugin dependency moves from a snapshot to a release artifact, while the project version increments from 4.0.0-SNAPSHOT to 4.0.1-SNAPSHOT in the Gradle configuration. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@ballerina/CompilerPlugin.toml`:
- Line 6: The path in CompilerPlugin.toml points to a hard-coded JAR name
"cloud-compiler-plugin-4.0.0.jar" which doesn't match the project version in
gradle.properties (4.0.1-SNAPSHOT); update the path in the file so it references
the actual built artifact (e.g., replace the filename portion with the current
version "cloud-compiler-plugin-4.0.1-SNAPSHOT.jar" or make it dynamic using your
build/version variable), ensuring the entry in CompilerPlugin.toml points to the
artifact produced by the compiler-plugin subproject.
|
|
||
| [[dependency]] | ||
| path = "../compiler-plugin/build/libs/cloud-compiler-plugin-4.0.0-SNAPSHOT.jar" | ||
| path = "../compiler-plugin/build/libs/cloud-compiler-plugin-4.0.0.jar" |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Verify the version in gradle.properties and check for other version references
echo "=== Version in gradle.properties ==="
grep "^version=" gradle.properties
echo ""
echo "=== Compiler plugin jar references in the repository ==="
rg -n "cloud-compiler-plugin-.*\.jar" --type toml
echo ""
echo "=== CompilerPlugin.toml full content ==="
cat ballerina/CompilerPlugin.tomlRepository: ballerina-platform/module-ballerina-c2c
Length of output: 632
Update compiler plugin jar version to match project version.
The dependency path references cloud-compiler-plugin-4.0.0.jar, but gradle.properties sets the version to 4.0.1-SNAPSHOT. During local builds, the compiler-plugin subproject will produce cloud-compiler-plugin-4.0.1-SNAPSHOT.jar, causing this path to fail resolution.
Proposed fix
[[dependency]]
-path = "../compiler-plugin/build/libs/cloud-compiler-plugin-4.0.0.jar"
+path = "../compiler-plugin/build/libs/cloud-compiler-plugin-4.0.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.
| path = "../compiler-plugin/build/libs/cloud-compiler-plugin-4.0.0.jar" | |
| [[dependency]] | |
| path = "../compiler-plugin/build/libs/cloud-compiler-plugin-4.0.1-SNAPSHOT.jar" |
🤖 Prompt for AI Agents
In `@ballerina/CompilerPlugin.toml` at line 6, The path in CompilerPlugin.toml
points to a hard-coded JAR name "cloud-compiler-plugin-4.0.0.jar" which doesn't
match the project version in gradle.properties (4.0.1-SNAPSHOT); update the path
in the file so it references the actual built artifact (e.g., replace the
filename portion with the current version
"cloud-compiler-plugin-4.0.1-SNAPSHOT.jar" or make it dynamic using your
build/version variable), ensuring the entry in CompilerPlugin.toml points to the
artifact produced by the compiler-plugin subproject.
Summary
This is an automated synchronization pull request following the 4.0.0 release, merging changes from the release branch back to master.
Changes
Version and Dependency Updates:
ballerina/CompilerPlugin.tomlgradle.propertiesto prepare for the next development cycleThese changes reflect the standard post-release workflow, transitioning from release artifacts to the next development iteration.