Go Continous Delivery Gradle plugin


License

License

GroupId

GroupId

io.jmnarloch
ArtifactId

ArtifactId

gocd-task-plugin-api
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Go Continous Delivery Gradle plugin
Go Continous Delivery Gradle plugin
Project URL

Project URL

https://github.com/jmnarloch/gocd-task-plugin-api
Source Code Management

Source Code Management

https://github.com/jmnarloch/gocd-task-plugin-api.git

Download gocd-task-plugin-api

How to add to project

<!-- https://jarcasting.com/artifacts/io.jmnarloch/gocd-task-plugin-api/ -->
<dependency>
    <groupId>io.jmnarloch</groupId>
    <artifactId>gocd-task-plugin-api</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.jmnarloch/gocd-task-plugin-api/
implementation 'io.jmnarloch:gocd-task-plugin-api:1.0.0'
// https://jarcasting.com/artifacts/io.jmnarloch/gocd-task-plugin-api/
implementation ("io.jmnarloch:gocd-task-plugin-api:1.0.0")
'io.jmnarloch:gocd-task-plugin-api:jar:1.0.0'
<dependency org="io.jmnarloch" name="gocd-task-plugin-api" rev="1.0.0">
  <artifact name="gocd-task-plugin-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.jmnarloch', module='gocd-task-plugin-api', version='1.0.0')
)
libraryDependencies += "io.jmnarloch" % "gocd-task-plugin-api" % "1.0.0"
[io.jmnarloch/gocd-task-plugin-api "1.0.0"]

Dependencies

compile (3)

Group / Artifact Type Version
commons-io : commons-io jar 2.4
com.google.code.gson : gson jar 2.3.1
org.apache.commons : commons-lang3 jar 3.4

test (2)

Group / Artifact Type Version
org.mockito : mockito-all jar 1.10.19
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Go Continuous Delivery Task API plugin

This is a wrapper over the Go CD newest JSON plugin API hiding all the communication details, letting you to focus only on writing the task logic.

Build Status

Setup

Add the dependency to your project.

<dependency>
  <groupId>io.jmnarloch</groupId>
  <artifactId>gocd-task-plugin-api</artifactId>
  <version>1.0.0</version>
</dependency>

Usage

Create a class that will extend the AbstractDispatchingTask and provide the ApiRequestDispatcher.

@Extension
public class GradleTask extends AbstractDispatchingTask {

    @Override
    protected ApiRequestDispatcher buildDispatcher() {
        return ApiRequestDispatcherBuilder.dispatch()
                .toConfiguration(new AnnotatedEnumConfigurationProvider<>(GradleTaskConfig.class))
                .toValidator(new GradleTaskValidator())
                .toView(new GradleTaskView())
                .toExecutor(new GradleTaskExecutor())
                .build();
    }
}

License

Apache 2.0

Versions

Version
1.0.0