When you insert apply plugin: 'org.gretty' to "build.gradle", Gretty plugin facilitates the project with the following gradle tasks:

Tasks Purpose Servlet container Stopped by Uses WAR Debug

appRun, run

Starts web-app

defined by gretty.servletContainer

keypress

no

no

appRunDebug, debug

Starts web-app

defined by gretty.servletContainer

keypress

no

yes

appRunWar

Starts web-app

defined by gretty.servletContainer

keypress

yes

no

appRunWarDebug

Starts web-app

defined by gretty.servletContainer

keypress

yes

yes

appStart

Starts web-app

defined by gretty.servletContainer

appStop

no

no

appStartDebug

Starts web-app

defined by gretty.servletContainer

appStop

no

yes

appStartWar

Starts web-app

defined by gretty.servletContainer

appStop

yes

no

appStartWarDebug

Starts web-app

defined by gretty.servletContainer

appStop

yes

yes

appStop

Stops web-app

-

-

-

-

appRestart

Restarts web-app

-

-

-

-

appBeforeIntegrationTest

Starts app before integration test.

defined by gretty.servletContainer

appAfterIntegrationTest

no

no

appAfterIntegrationTest

Stops app after integration test.

-

-

-

-

jettyRun

Starts web-app

jetty

keypress

no

no

jettyRunDebug, debug

Starts web-app

jetty

keypress

no

yes

jettyRunWar

Starts web-app

jetty

keypress

yes

no

jettyRunWarDebug

Starts web-app

jetty

keypress

yes

yes

jettyStart

Starts web-app

jetty

jettyStop

no

no

jettyStartDebug

Starts web-app

jetty

jettyStop

no

yes

jettyStartWar

Starts web-app

jetty

jettyStop

yes

no

jettyStartWarDebug

Starts web-app

jetty

jettyStop

yes

yes

jettyStop

same as appStop

-

-

-

-

jettyRestart

same as appRestart

-

-

-

-

tomcatRun

Starts web-app

tomcat

keypress

no

no

tomcatRunDebug, debug

Starts web-app

tomcat

keypress

no

yes

tomcatRunWar

Starts web-app

tomcat

keypress

yes

no

tomcatRunWarDebug

Starts web-app

tomcat

keypress

yes

yes

tomcatStart

Starts web-app

tomcat

tomcatStop

no

no

tomcatStartDebug

Starts web-app

tomcat

tomcatStop

no

yes

tomcatStartWar

Starts web-app

tomcat

tomcatStop

yes

no

tomcatStartWarDebug

Starts web-app

tomcat

tomcatStop

yes

yes

tomcatStop

same as appStop

-

-

-

-

tomcatRestart

same as appRestart

-

-

-

-