mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 21:05:58 -05:00
Work around Gradle 8.1 bug causing Files.readString(Path) to call path.toFile().
This commit is contained in:
@@ -240,7 +240,7 @@ public class MappingConfiguration {
|
||||
}
|
||||
|
||||
private UnpickMetadata parseUnpickMetadata(Path input) throws IOException {
|
||||
JsonObject jsonObject = LoomGradlePlugin.GSON.fromJson(Files.readString(input), JsonObject.class);
|
||||
JsonObject jsonObject = LoomGradlePlugin.GSON.fromJson(Files.readString(input, StandardCharsets.UTF_8), JsonObject.class);
|
||||
|
||||
if (!jsonObject.has("version") || jsonObject.get("version").getAsInt() != 1) {
|
||||
throw new UnsupportedOperationException("Unsupported unpick version");
|
||||
|
||||
Reference in New Issue
Block a user