Start a Liberty server in the background. The server instance is automatically created if it does not exist.
libertyStart
depends on libertyCreate
, and deploy
if configured.
See the Liberty server configuration properties for common server configuration.
clean
is set to false
by default unless specified in build.gradle
as shown in this example.
To set up verification of applications installed from deploy
, set verifyAppStartTimeout
to the number of seconds the server should spend checking for start messages in the message logs before it times out.
apply plugin: 'liberty'
liberty {
server {
name = 'myServer'
// Clean logs, workarea, apps, dropins on server startup
clean = true
// Wait 30 seconds to verify application start
verifyAppStartTimeout = 30
}
}