From 6ff1eac6491ae5cd324bc8bf3d358abe53ec4c70 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Sun, 16 Jul 2023 17:28:37 +0800 Subject: [PATCH] Remove reference to old 1.0 API version This was introduced a very long time ago, and no longer needed. --- .../java/cd/go/artifact/docker/registry/Constants.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/cd/go/artifact/docker/registry/Constants.java b/src/main/java/cd/go/artifact/docker/registry/Constants.java index 3438966f..ff9bbd7c 100644 --- a/src/main/java/cd/go/artifact/docker/registry/Constants.java +++ b/src/main/java/cd/go/artifact/docker/registry/Constants.java @@ -18,22 +18,19 @@ import com.thoughtworks.go.plugin.api.GoPluginIdentifier; -import static java.util.Arrays.asList; +import java.util.List; public interface Constants { // The type of this extension String EXTENSION_TYPE = "artifact"; // The extension point API version that this plugin understands - String OLDER_EXTENSION_API_VERSION = "1.0"; String EXTENSION_API_VERSION = "2.0"; String CONSOLE_LOG_PROCESSOR_API_VERSION = "1.0"; // the identifier of this plugin - GoPluginIdentifier PLUGIN_IDENTIFIER = new GoPluginIdentifier(EXTENSION_TYPE, asList(OLDER_EXTENSION_API_VERSION, EXTENSION_API_VERSION)); + GoPluginIdentifier PLUGIN_IDENTIFIER = new GoPluginIdentifier(EXTENSION_TYPE, List.of(EXTENSION_API_VERSION)); // requests that the plugin makes to the server - String REQUEST_SERVER_PREFIX = "go.processor"; - String REQUEST_SERVER_GET_PLUGIN_SETTINGS = REQUEST_SERVER_PREFIX + ".plugin-settings.get"; String SEND_CONSOLE_LOG = "go.processor.artifact.console-log"; }