Giter VIP home page Giter VIP logo

http-glassfish-deployer's Introduction

Deploy to glassfish using HTTP

Build status

What?

This is a gradle plugin uses the glassfish admin console REST-like API to deploy apps, instead of you having to click around to do it. Or rely on autodeploy (which doesn't work with properly versioned deployment archives...)

How?

Add the following to your gradle build:

plugins {
  id "ch.mollusca.glassfish.http.deployer"
}

This adds two tasks that should be rather self-explanatory.

  • deploy
  • undeploy

Mandatory configuration

As of now, you have to tell the plugin what to deploy:

# Add to build.gradle

apply plugin: 'war' # or whatever you use to assemble a deployment archive

http_deployer {
    deploymentArchive = war.archivePath
}

Other configuration

Other settings that are available (they all have defaults):

secure = false              # default: true         Do not validate SSL certificates at all
host = "can.has.host.com"   # default: localhost    Use another hostname
scheme = "http"             # default: https        Use http instead of https
port = 9898                 # default: 4848         Use another admin console port
force = true                # default: false        Force (re-)deployment
contextRoot = 'sample'      # default: ''           Use a context root
applicationName = 'sample'  # default: ''           Use a application name
timeoutDuration = 300       # default: 12           Use a different timeout
timeoutUnit = MILLISECONDS  # default: SECONDS      Use a different timeout duration unit
user = 'foo'                # default: 'admin'      Use another user name
password = 'asdf'           # default: ''           Use a password

Why?

Because cargo is not cutting it for us and it's very heavy-weight. Plus it seems that the gradle plugin is abandonware.

Why not curl?

Curl commands are awesome, don't get me wrong. This is a gradle plugin however and it uses okhttp to do requests.

http-glassfish-deployer's People

Contributors

kungfoo avatar

Stargazers

 avatar Leonardo Elias avatar Gabor Dolla avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.