The extension for configuring a conventional JVM Docker plugin.
Type | Name and description |
---|---|
Property<String> |
baseImage The Docker base image used for Java application. |
SetProperty<String> |
images The images used for the build and push operation e.g. |
ListProperty<String> |
jvmArgs The JVM arguments used to start the Java program. |
Property<String> |
mainClassName The main class name to use for starting the application e.g. |
Property<String> |
maintainer The maintainer of the image. |
ListProperty<Integer> |
ports The Docker image exposed ports. |
Constructor and description |
---|
DockerConventionJvmApplicationExtension
(ObjectFactory objectFactory) |
The Docker base image used for Java application.
Defaults to openjdk:jre-alpine
.
The images used for the build and push operation e.g. vieux/apache:2.0
.
Defaults to [<project.group>/<applicationName>:<project.version>]
.
The JVM arguments used to start the Java program.
Defaults to []
.
The main class name to use for starting the application e.g. com.bmuschko.app.Main
.
By default tries to automatically find the main class by scanning the classpath. The value of this property takes precedence and circumvents classpath scanning.
The maintainer of the image.
Defaults to the value of the system property user.name
.
The Docker image exposed ports.
Defaults to [8080]
.
Groovy Documentation