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);