Gradle Plugins

Maintained by aalmiray

Summary

This plugin is used for starting and stopping UNIX command line processes from within your build.

A typical application of this plugin is for stopping and starting an embedded web server when running functional tests from within your build.


Website https://github.com/marcoVermeulen/gradle-spawn-plugin
Author marcoVermeulen
Version 0.5.2

Usage


    import com.wiredforcode.gradle.spawn.*

    buildscript {
        repositories {
            ...
            maven { url 'http://dl.bintray.com/vermeulen-mp/gradle-plugins' }
        }
        dependencies {
            classpath 'com.wiredforcode:gradle-spawn-plugin:0.5.1'
        }
    }

    apply plugin: 'spawn'

    task startServer(type: SpawnProcessTask, dependsOn: 'assemble') {
        command "java -jar ${projectDir}/build/libs/zim-service.jar"
        ready 'Started Application'
    }

    task stopServer(type: KillProcessTask)