Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ id = "code2cloud"
class = "io.ballerina.c2c.C2CCompilerPlugin"

[[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"
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 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.toml

Repository: 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.

Suggested change
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.

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.caching=true
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
group=io.ballerina
version=4.0.0-SNAPSHOT
version=4.0.1-SNAPSHOT
systemProp.org.gradle.internal.publish.checksums.insecure=true
spotbugsPluginVersion=6.0.18
shadowJarPluginVersion=8.1.1
Expand Down