Meecrowave Gradle

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "org.apache.meecrowave:meecrowave-gradle-plugin:${meecrowave.version}"
    }
}

group 'com.app'
version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'org.apache.meecrowave'

meecrowave {
    httpPort = 9090
    // most of the meecrowave core configuration
}
until version 1.2.7 the plugin id was org.apache.microwave.microwave so you had to use apply plugin: 'org.apache.microwave.microwave'. Alternatively you can use plugin class: apply plugin: org.apache.meecrowave.gradle.MeecrowavePlugin.

Configuration

Name Default Description

antiResourceLocking

false

Should Tomcat anti resource locking feature be activated on StandardContext.

cdiConversation

false

Should CDI conversation be activated

clientAuth

-

HTTPS keystore client authentication

conf

-

Conf folder to synchronize

context

Default context name

cxfServletParams

-

Init parameters passed to CXF servlet

defaultSSLHostConfigName

-

The name of the default SSLHostConfig that will be used for secure https connections.

deleteBaseOnStartup

true

Should the directory be cleaned on startup if existing

dir

-

Root folder if provided otherwise a fake one is created in tmp-dir

host

localhost

Default host

http2

false

Activate HTTP 2

httpPort

8080

HTTP port

httpsPort

8443

HTTPS port

initializeClientBus

true

Should the client bus be set. If false the server one will likely be reused.

injectServletContainerInitializer

true

Should ServletContainerInitialize support injections.

jaxrsAutoActivateBeanValidation

true

Should bean validation be activated on JAX-RS endpoint if present in the classpath.

jaxrsDefaultProviders

-

If jaxrsProviderSetup is true the list of default providers to load (or defaulting to johnson jsonb and jsonp ones)

jaxrsLogProviders

false

Should JAX-RS providers be logged

jaxrsMapping

-

Default jaxrs mapping

jaxrsProviderSetup

true

Should default JAX-RS provider be configured

jaxwsSupportIfAvailable

true

Should @WebService CDI beans be deployed if cxf-rt-frontend-jaxws is in the classpath.

jsonbBinaryStrategy

-

Should JSON-B provider prettify the output

jsonbEncoding

UTF-8

Which encoding provider JSON-B should use

jsonbIJson

false

Should JSON-B provider comply to I-JSON

jsonbNamingStrategy

-

Should JSON-B provider prettify the output

jsonbNulls

false

Should JSON-B provider serialize nulls

jsonbOrderStrategy

-

Should JSON-B provider prettify the output

jsonbPrettify

false

Should JSON-B provider prettify the output

jsonpBufferStrategy

QUEUE

JSON-P JAX-RS provider buffer strategy (see johnzon)

jsonpMaxReadBufferLen

65536

JSON-P JAX-RS provider read buffer limit size (see johnzon)

jsonpMaxStringLen

10485760

JSON-P JAX-RS provider max string limit size (see johnzon)

jsonpMaxWriteBufferLen

65536

JSON-P JAX-RS provider write buffer limit size (see johnzon)

jsonpPrettify

false

Should JSON-P JAX-RS provider prettify the outputs (see johnzon)

jsonpSupportsComment

false

Should JSON-P JAX-RS provider support comments (see johnzon)

keepServerXmlAsThis

false

Don’t replace ports in server.xml

keyAlias

-

HTTPS keystore alias

keystoreFile

-

HTTPS keystore location

keystorePass

-

HTTPS keystore password

keystoreType

-

HTTPS keystore type

loggingGlobalSetup

true

Should logging be configured to use log4j2 (it is global)

loginConfig

-

web.xml login config

meecrowaveProperties

meecrowave.properties

Loads a meecrowave properties, defaults to meecrowave.properties.

properties

-

Passthrough properties

quickSession

false

Should an unsecured but fast session id generator be used

roles

-

In memory roles

scanningExcludes

-

A forced exclude list of jar names (comma separated values)

scanningIncludes

-

A forced include list of jar names (comma separated values)

scanningPackageExcludes

-

A forced exclude list of packages names (comma separated values)

scanningPackageIncludes

-

A forced include list of packages names (comma separated values)

securityConstraints

[]

web.xml security constraint

serverXml

-

Provided server.xml

sharedLibraries

-

A folder containing shared libraries.

skip

false

Should the extension be skipped completely

skipHttp

false

Skip HTTP connector

skipMavenCentral

false

Don’t add to repositories mavenCentral()

ssl

false

Use HTTPS

sslProtocol

-

HTTPS protocol

stopPort

-1

Shutdown port if used or -1

tempDir

-

Temporary directory

tomcatAccessLogPattern

-

Activates and configure the access log valve. Value example: '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'

tomcatAutoSetup

true

Add default servlet

tomcatFilter

-

A Tomcat JarScanFilter

tomcatJspDevelopment

false

Should JSP support if available be set in development mode

tomcatNoJmx

true

(Experimental) Should Tomcat MBeans be skipped.

tomcatScanning

true

Should Tomcat scanning be used (@HandleTypes, @WebXXX)

tomcatWrapLoader

false

(Experimental) When deploying a classpath (current classloader), should meecrowave wrap the loader to define another loader identity but still use the same classes and resources.

useLog4j2JulLogManager

true

Should JUL logs be redirected to Log4j2 - only works before JUL usage.

useShutdownHook

true

Use shutdown hook to automatically stop the container on Ctrl+C

useTomcatDefaults

true

Should Tomcat default be set (session timeout, mime mapping etc…​)

users

-

In memory users

watcherBouncing

0

Activate redeployment on directories update using this bouncing.

webResourceCached

true

Cache web resources

webSessionCookieConfig

-

Force the cookie-config, it uses a properties syntax with the keys being the web.xml tag names.

webSessionTimeout

-

Force the session timeout for webapps

webXml

-

Global web.xml

webapp

-

Webapp to deploy