Skip to content

Commit

Permalink
Alter tool bala to mimic a U9 build
Browse files Browse the repository at this point in the history
  • Loading branch information
gayaldassanayake committed Dec 20, 2024
1 parent eb06cb9 commit 58c8e8d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,8 @@ private void updatePackageJsonBallerinaVersion(Path packagePath, String balVersi

// Update the value for the given key
jsonObject.addProperty("ballerina_version", balVersion);
jsonObject.addProperty("platform", "java17");
jsonObject.remove("readme");
Gson gson = new GsonBuilder().setPrettyPrinting().create();
String formattedJson = gson.toJson(jsonObject);
Files.writeString(packageJsonPath, formattedJson);
Expand Down

0 comments on commit 58c8e8d

Please sign in to comment.