github.com/simonferquel/app@v0.6.1-0.20181012141724-68b7cccf26ac/integrations/gradle/README.md (about)

     1  # DockerApp Gradle plugin
     2  
     3  This directory contains an experimental Gradle plugin that exposes tasks that make `docker-app` available via the Gradle build tool. This in turn makes it easy to integrate with your IDE of choice.
     4  
     5  ## Building the plugin
     6  
     7  Running `./gradlew build` in the plugin directory will create the plugin jar file in the `build/lib` directory.
     8  
     9  ## Using the plugin
    10  
    11  Put the following code into your build.gradle file:
    12  
    13  ```gradle
    14  buildscript{
    15      dependencies{
    16          classpath files('path/to/dockerapp-plugin-1.0-SNAPSHOT.jar')
    17      }
    18  }
    19  
    20  apply plugin: com.docker.gradle.dockerapp.DockerAppPlugin
    21  
    22  import com.docker.gradle.dockerapp.*
    23  ```
    24  
    25  The plugin requires that the `docker-app` tool is in your `$PATH`.
    26  
    27  You can then use the tasks exposed by this plugin:
    28  
    29  ### Render
    30  
    31  This task performs a `docker-app render`.
    32  
    33  ```gradle
    34  task renderMyApp(type: DockerAppRender) {
    35    appPath = 'path/to/dockerapp'
    36    target = 'rendered-output.yml'
    37  }
    38  ```