Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmnarloch/gocd-task-plugin-api
A wrapper on top of Go Continous Delivery JSON plugin API
https://github.com/jmnarloch/gocd-task-plugin-api
Last synced: 4 days ago
JSON representation
A wrapper on top of Go Continous Delivery JSON plugin API
- Host: GitHub
- URL: https://github.com/jmnarloch/gocd-task-plugin-api
- Owner: jmnarloch
- License: apache-2.0
- Created: 2015-09-24T14:24:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-15T19:37:40.000Z (almost 9 years ago)
- Last Synced: 2023-07-04T14:06:56.840Z (over 1 year ago)
- Language: Java
- Size: 387 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://travis-ci.org/jmnarloch/gocd-task-plugin-api.svg)](https://travis-ci.org/jmnarloch/gocd-task-plugin-api)
## Setup
Add the dependency to your project.
```
io.jmnarloch
gocd-task-plugin-api
1.0.0```
## Usage
Create a class that will extend the `AbstractDispatchingTask` and provide the `ApiRequestDispatcher`.
```java
@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