Skip to content

Commit

Permalink
Remove reference to old 1.0 API version
Browse files Browse the repository at this point in the history
This was introduced a very long time ago (GoCD 18.x), and no longer needed.
  • Loading branch information
chadlwilson committed Jul 16, 2023
1 parent 3513573 commit 45d781e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply from: "https://raw.githubusercontent.com/gocd/gocd-plugin-gradle-task-help

gocdPlugin {
id = 'cd.go.artifact.docker.registry'
pluginVersion = '1.3.1'
pluginVersion = '1.4.0'
goCdVersion = '20.9.0'
name = 'Artifact plugin for docker'
description = 'Plugin allows to push/pull docker image from public or private docker registry'
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/cd/go/artifact/docker/registry/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

0 comments on commit 45d781e

Please sign in to comment.