Gradle docker plugin

Docker plugin applying some configuration for your builds

License

License

Categories

Categories

Gradle Build Tools Docker Container Virtualization Tools
GroupId

GroupId

com.ekino.oss.gradle.plugin
ArtifactId

ArtifactId

gradle-docker-plugin
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle docker plugin
Docker plugin applying some configuration for your builds
Project URL

Project URL

https://github.com/ekino/gradle-docker-plugin
Source Code Management

Source Code Management

https://github.com/ekino/gradle-docker-plugin

Download gradle-docker-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.ekino.oss.gradle.plugin/gradle-docker-plugin/ -->
<dependency>
    <groupId>com.ekino.oss.gradle.plugin</groupId>
    <artifactId>gradle-docker-plugin</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.ekino.oss.gradle.plugin/gradle-docker-plugin/
implementation 'com.ekino.oss.gradle.plugin:gradle-docker-plugin:0.0.1'
// https://jarcasting.com/artifacts/com.ekino.oss.gradle.plugin/gradle-docker-plugin/
implementation ("com.ekino.oss.gradle.plugin:gradle-docker-plugin:0.0.1")
'com.ekino.oss.gradle.plugin:gradle-docker-plugin:jar:0.0.1'
<dependency org="com.ekino.oss.gradle.plugin" name="gradle-docker-plugin" rev="0.0.1">
  <artifact name="gradle-docker-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ekino.oss.gradle.plugin', module='gradle-docker-plugin', version='0.0.1')
)
libraryDependencies += "com.ekino.oss.gradle.plugin" % "gradle-docker-plugin" % "0.0.1"
[com.ekino.oss.gradle.plugin/gradle-docker-plugin "0.0.1"]

Dependencies

runtime (2)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.50
com.avast.gradle : gradle-docker-compose-plugin jar 0.9.4

Project Modules

There are no modules declared in this project.

Ekino gradle docker plugin

Docker gradle plugin for Ekino projects

Build Status GitHub (pre-)release GitHub license Quality Gate Status

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.

com.ekino.oss.gradle.plugin

Ekino

Versions

Version
0.0.1