anchor.diff:      dependsOn startMyAppContainer
       finalizedBy stopMyAppContainer
   }
  +----
  +
  +
  +== Java application plugin
  +
  +The plugin `com.bmuschko.docker-java-application` is a highly opinonated plugin for projects applying the [application plugin](http://www.gradle.org/docs/current/userguide/application_plugin.html).
  +Under the covers the plugin preconfigures tasks for creating and pushing Docker images for your Java application. The default
  +configuration is tweakable via an exposed extension. To use the plugin, include the following code snippet in your build script:
  +
  +[source,groovy]
  +----
  +apply plugin: 'com.bmuschko.docker-java-application'
  +----
  +
  +
  +=== Extension properties
  +
  +The plugin defines the following extension properties in the `javaApplication` closure:
  +
  +[options="header"]
  +|=======
  +|Property name   |Type      |Default value                       |Description
  +|`baseImage`     |String    |java                                |The Docker base image used for Java application.
  +|`maintainer`    |String    |null                                |The name and email address of the image maintainer.
  +|`port`          |Integer   |8080                                |The Docker image entry point port used for the Java application.
  +|`tag`           |String    |<applicationName>:<projectVersion>  |The tag used for the Docker image.
  +|=======
  +
  +
  +=== Default tasks
  +
  +The plugin provides a set of tasks for your project and preconfigures them with sensible defaults.
  +
  +[options="header"]
  +|=======
  +|Task name            |Type               |Description
  +|`dockerCopyDistTar`  |Copy               |Copies the Java application's TAR file to a temporary directory for image creation.
  +|`dockerDistTar`      |Dockerfile         |Creates the Docker image for the Java application.
  +|`dockerBuildImage`   |DockerBuildImage   |Builds the Docker image for the Java application.
  +|`dockerPushImage`    |DockerPushImage    |Pushes created Docker image to the repository.
  +|=======
  +
  +
  +==== Example
  +
  +[source,groovy]
  +----
  +docker {
  +    javaApplication {
  +        baseImage = 'dockerfile/java:openjdk-7-jre'
  +        maintainer = 'Benjamin Muschko "benjamin.muschko@gmail.com"'
  +        port = 9090
  +        tag = 'jettyapp:1.115'
  +    }
  +}
  +----
  +
  +
  +=== Usage examples
  +
  +[source,groovy]
  +----
  +apply plugin: 'java'
  +apply plugin: 'application'
  +apply plugin: 'docker-java-application'
  +
  +version = '1.0'
  +sourceCompatibility = 1.7
  +
  +repositories {
  +    mavenCentral()
  +}
  +
  +dependencies {
  +    compile 'org.eclipse.jetty.aggregate:jetty-all:9.2.5.v20141112'
  +}
  +
  +mainClassName = 'com.bmuschko.gradle.docker.application.JettyMain'
  +
  +docker {
  +    javaApplication {
  +        maintainer = 'Jon Doe "jon.doe@gmail.com"'
  +    }
  +}
   ----
positive.code:     }
  
      dependencies {
          classpath 'com.bmuschko:gradle-docker-plugin:0.5'
      }
  }
  
  apply plugin: 'com.bmuschko.docker-remote-api'
  ----
  
  
negative.code: |=======
  
  
  ==== Example
  
  [source,groovy]
  ----
  docker {
      serverUrl = 'http://remote.docker.com:2375'
  
  