Docker gradle plugin for ekino projects
This plugin configures the following tasks for any ekino projects :
- Manage docker-compose
This will create the JAR and run the tests
./gradlew build
This will publish the JAR in your local Maven repository
./gradlew publishToMavenLocal
This will upload the plugin to Nexus repository
./gradlew build publish
- JDK 8
- Gradle 6.9.1
Add the plugin in your Gradle build script:
plugins {
id "com.ekino.oss.gradle.plugin.docker" version "0.0.1"
}
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.