From 58c8e8dbe4bfec44634fb753ea17a98e935faa7a Mon Sep 17 00:00:00 2001 From: Gayal Dassanayake Date: Fri, 20 Dec 2024 10:10:24 +0530 Subject: [PATCH] Alter tool bala to mimic a U9 build --- .../src/test/java/org/ballerina/projectapi/BalToolTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTest.java b/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTest.java index 62ac077431..fbd17c45e9 100644 --- a/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTest.java +++ b/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTest.java @@ -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);