• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

arquillian/arquillian-gradle-plugin: Gradle Plugin for handling Container contro ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

arquillian/arquillian-gradle-plugin

开源软件地址(OpenSource Url):

https://github.com/arquillian/arquillian-gradle-plugin

开源编程语言(OpenSource Language):

Groovy 100.0%

开源软件介绍(OpenSource Introduction):

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'
        }
    }
}



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
mbeddr/mps-gradle-plugin发布时间:2022-06-14
下一篇:
thomaslee/gradle-thrift-plugin: Thrift plugin for Gradle发布时间:2022-06-14
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap