diff --git a/src/IKVM.Maven.Sdk.Tasks/MavenReferenceItemResolve.cs b/src/IKVM.Maven.Sdk.Tasks/MavenReferenceItemResolve.cs
index f76e1c9..78fe614 100644
--- a/src/IKVM.Maven.Sdk.Tasks/MavenReferenceItemResolve.cs
+++ b/src/IKVM.Maven.Sdk.Tasks/MavenReferenceItemResolve.cs
@@ -50,7 +50,8 @@ public class MavenReferenceItemResolve : Task
new RemoteRepositoryJsonConverter(),
new VersionJsonConverter(),
new VersionConstraintJsonConverter(),
- }
+ },
+ MaxDepth = 1024,
};
///
diff --git a/src/IKVM.Maven.Sdk.Tasks/MavenRepositoryItem.cs b/src/IKVM.Maven.Sdk.Tasks/MavenRepositoryItem.cs
index c1a9b66..e75001a 100644
--- a/src/IKVM.Maven.Sdk.Tasks/MavenRepositoryItem.cs
+++ b/src/IKVM.Maven.Sdk.Tasks/MavenRepositoryItem.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Text.Json.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
@@ -37,12 +38,14 @@ public MavenRepositoryItem(string id, string url)
/// ID of the repository.
///
[JsonProperty("id")]
+ [JsonPropertyName("id")]
public string Id { get; set; }
///
/// URL of the repository.
///
[JsonProperty("url")]
+ [JsonPropertyName("url")]
public string Url { get; set; }
public override bool Equals(object obj)
diff --git a/src/IKVM.Maven.Sdk.Tasks/MavenResolveCacheFile.cs b/src/IKVM.Maven.Sdk.Tasks/MavenResolveCacheFile.cs
index 86a9d76..8cee9ac 100644
--- a/src/IKVM.Maven.Sdk.Tasks/MavenResolveCacheFile.cs
+++ b/src/IKVM.Maven.Sdk.Tasks/MavenResolveCacheFile.cs
@@ -1,4 +1,4 @@
-using IKVM.Maven.Sdk.Tasks.Aether;
+using System.Text.Json.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
@@ -18,24 +18,28 @@ class MavenResolveCacheFile
/// Version of the cache file.
///
[JsonProperty("version")]
+ [JsonPropertyName("version")]
public int Version { get; set; }
///
/// Repositories against which resolution happened.
///
[JsonProperty("repositories")]
+ [JsonPropertyName("repositories")]
public MavenRepositoryItem[] Repositories { get; set; }
///
/// Set of maven references that have been previously resolved.
///
[JsonProperty("dependencies")]
+ [JsonPropertyName("dependencies")]
public Dependency[] Dependencies { get; set; }
///
/// Result of previous resolution
///
[JsonProperty("graph")]
+ [JsonPropertyName("graph")]
public DefaultDependencyNode Graph { get; set; }
}