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'
The plugin defines the following tasks:
Task name | Depends on | Type | Description |
---|---|---|---|
|
- |
ArquillianStart |
Starts a container. |
|
- |
ArquillianStop |
Stops a running container. |
|
|
ArquillianDeploy |
Deploys an archive to a container. |
|
|
ArquillianUndeploy |
Undeploys an archive from a container. |
|
|
ArquillianRun |
Starts the container, deploys an archive to it and waits until the user presses |
The plugin defines the following extension properties in the arquillian
closure:
Property name | Type | Default value | Description |
---|---|---|---|
|
Boolean |
|
Configures the Arquillian container to run in debug mode. |
|
File |
WAR, EAR or JAR file depending on applied plugins |
The deployable artifact. This can be a WAR, EAR or JAR file. |
|
NamedDomainObjectContainer<ArquillianContainer> |
default container |
The containers to be used. |
If no container is specified using the containers
property, an embedded Jetty container is used.
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'
}
}
}