@CompileStatic class DockerConventionJvmApplicationExtension extends Object
The extension for configuring a conventional JVM Docker plugin.
| Type | Name and description |
|---|---|
ListProperty<String> |
argsThe program arguments appended to Java application. |
Property<String> |
baseImageThe Docker base image used for Java application. |
SetProperty<String> |
imagesThe images used for the build and push operation e.g. |
ListProperty<String> |
jvmArgsThe JVM arguments used to start the Java program. |
Property<String> |
mainClassNameThe main class name to use for starting the application e.g. |
Property<String> |
maintainerThe maintainer of the image. |
ListProperty<Integer> |
portsThe Docker image exposed ports. |
| Constructor and description |
|---|
DockerConventionJvmApplicationExtension
(ObjectFactory objectFactory) |
The program arguments appended to Java application.
Defaults to [].
The Docker base image used for Java application.
Defaults to openjdk:11.0.15-jre-slim.
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