Gradle Plugin for handling Container control and deployment lifecycle
Groovy
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
.github Introduces templates for GH issues and PRs Oct 26, 2016
gradle/wrapper Bumped up Wrapper to 1.7. Aug 29, 2013
src Issue #3: Support for declaring custom container adapter dependencies. May 30, 2013
.gitignore Reading the container definition from JSON to build up container adap… Apr 20, 2013
LICENSE.txt Added missing license Aug 29, 2013
README.asciidoc Added example showing how to apply the plugin from Bintray. Aug 29, 2013
build.gradle Bumped up Wrapper to 1.7. Aug 29, 2013
gradlew
gradlew.bat Issue #2: Support for configuring multiple containers at a time. Upgr… May 9, 2013

README.asciidoc

Gradle Arquillian plugin

Arquillian Logo

Gradle plugin for handling container control and deployment lifecycle.

Usage

To use the plugin, include in your build script:

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'org.jboss.arquillian.gradle:arquillian-gradle-plugin:0.1'
    }
}

apply plugin: 'arquillian'

Tasks

The plugin defines the following tasks:

Task name Depends on Type Description

arquillianStart<ContainerName>

-

ArquillianStart

Starts a container.

arquillianStop<ContainerName>

-

ArquillianStop

Stops a running container.

arquillianDeploy<ContainerName>

assemble

ArquillianDeploy

Deploys an archive to a container.

arquillianUndeploy<ContainerName>

assemble

ArquillianUndeploy

Undeploys an archive from a container.

arquillianRun<ContainerName>

assemble

ArquillianRun

Starts the container, deploys an archive to it and waits until the user presses CTRL + C to stop.

Extension properties

The plugin defines the following extension properties in the arquillian closure:

Property name Type Default value Description

debug

Boolean

false

Configures the Arquillian container to run in debug mode.

deployable

File

WAR, EAR or JAR file depending on applied plugins

The deployable artifact. This can be a WAR, EAR or JAR file.

containers

NamedDomainObjectContainer<ArquillianContainer>

default container

The containers to be used.

If no container is specified using the containers property, an embedded Jetty container is used.

Example

arquillian {
    debug = true
    deployable = file('my/path/arbitraryWebApp.war')

    containers {
        jetty {
            version = '8'
            type = 'embedded'
            config = ['bindHttpPort': 8085, 'bindAddress': '127.0.0.1', 'jettyPlus': false]

            dependencies {
                adapter 'org.jboss.arquillian.container:arquillian-jetty-embedded-7:1.0.0.CR2'
                container 'org.eclipse.jetty:jetty-webapp:8.1.11.v20130520'
                container group: 'org.eclipse.jetty', name: 'jetty-plus', version: '8.1.11.v20130520'
            }
        }

        glassfish {
            version = '3'
            type = 'embedded'
        }
    }
}