deployment: Update configuration to use version path for plugin deployment

This commit is contained in:
Oliver
2025-03-15 14:12:54 +01:00
parent 1c9a01544c
commit aefbc8365e
2 changed files with 4 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ public record Configuration(
@SerializedName("project_id") String projectID,
@SerializedName("plugin_jar_path") String pluginJarPath,
@SerializedName("changelog_path") String changeLogPath,
String version,
@SerializedName("version_path") String versionPath,
@SerializedName("supported_versions") String[] supportedVersions,
String channel,
@SerializedName("loaders") String[] loaders,

View File

@@ -20,10 +20,11 @@ public class ModrinthService {
public void deployPlugin(Configuration config) throws IOException {
String changelog = Files.readString(Path.of(config.changeLogPath()));
String version = Files.readString(Path.of(config.versionPath()));
CreateVersionRequest req = new CreateVersionRequest(
config.version(),
config.version(),
version,
version,
changelog,
config.supportedVersions(),
config.channel(),