Ekino gradle docker plugin
Docker gradle plugin for Ekino projects
Overview
This plugin configures the following tasks for any Ekino projects :
- Manage docker-compose
Build
This will create the JAR and run the tests
./gradlew build
Publish locally
This will publish the JAR in your local Maven repository
./gradlew publishToMavenLocal
Publish
This will upload the plugin to Nexus repository
./gradlew build publish
Requirements
- JDK 8
- Gradle 5.6.4
Usage
Add the plugin in your Gradle build script:
plugins {
id "com.ekino.oss.gradle.plugin.docker" version "0.0.1"
}
Docker compose
If you have a docker-compose.yml
at the root of your project, this plugin will start your docker compose before :
- The bootRun task
- The integrationTest
And it will stop the docker compose after.
It can be very useful to start servers in order to perform good integration tests or start a microservice with all its requirements offline.