Skip to content

Gradle plugin that deploys application (single war) to JBoss EAP(Wildfly) server.

Notifications You must be signed in to change notification settings

newnewcoder/jboss-curl-deploy-gradle-plugin

Repository files navigation

JBoss EAP(v6.4) gradle plugin

travis-ci license download

Gradle plugin that deploys application (single war) to JBoss EAP server.

Using curl to call HTTP management API from JBoss EAP server. So you need to install curl.

This plugin provides following tasks:

1. add: 
   upload war to JBoss EAP server and add it as application.

2. remove: 
   remove application from JBoss EAP server.

3. deploy: 
   add war to JBoss EAP server and enable application.

4. enable: 
   enable application from JBoss EAP server.

5. disable: 
   disable application from JBoss EAP server.

6. status: 
   print the JBoss EAP server status

7. show: #since v1.0.2
   print the deployments

How to use

In build.gradle

First, apply plugin using url as below:

apply from: 'https://raw.githubusercontent.com/newnewcoder/jboss-curl-deploy-gradle-plugin/master/pluginScripts/jbossCurlDeploy.plugin'

Fill in jboss block with JBoss console connection info:

jboss {
    host = '<JBoss AP Server host>'
    port = '9990' //default 9990
    user = '<user>'
    password = '<password>'
    warName = '<war file name that will be deploy>'
    warPath = '<war file path>'
    debug = false //set to true for debug mode, that just print Request object's properties.
}

Now you can print all tasks and try deploy!

gradlew tasks --all

About

Gradle plugin that deploys application (single war) to JBoss EAP(Wildfly) server.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages