diff --git a/patches-list.json b/patches-list.json index 4a377aeda..4c932cb89 100644 --- a/patches-list.json +++ b/patches-list.json @@ -1,4 +1,5 @@ { - "version": "", + "NOTE": "Do NOT manually edit this file. This file is automatically updated when semantic release (release.yml) runs. Manually editing this file can break your releases and break third party tools that use this file.", + "version": "0.0.0", "patches": [] -} +} \ No newline at end of file diff --git a/patches/src/main/kotlin/util/PatchListGenerator.kt b/patches/src/main/kotlin/util/PatchListGenerator.kt index e2264ab08..62d43a430 100644 --- a/patches/src/main/kotlin/util/PatchListGenerator.kt +++ b/patches/src/main/kotlin/util/PatchListGenerator.kt @@ -88,7 +88,13 @@ private fun generatePatchList(version: String, patches: Set>) { .create() val jsonObject = JsonObject() - jsonObject.addProperty("version", "v$version") + jsonObject.addProperty( + "NOTE", + "Do NOT manually edit this file. This file is automatically updated when " + + "semantic release (release.yml) runs. Manually editing this file can break " + + "your releases and break third party tools that use this file." + ) + jsonObject.addProperty("version", version) jsonObject.add("patches", gson.toJsonTree(patchesMap)) listJson.writeText(gson.toJson(jsonObject))