Package com.bmuschko.gradle.docker
Class DockerJavaApplicationPlugin
java.lang.Object
com.bmuschko.gradle.docker.DockerConventionJvmApplicationPlugin<DockerJavaApplication>
com.bmuschko.gradle.docker.DockerJavaApplicationPlugin
public class DockerJavaApplicationPlugin
extends DockerConventionJvmApplicationPlugin<DockerJavaApplication>
Opinionated Gradle plugin for creating and pushing a Docker image for a Java application.
This plugin can be configured with the help of DockerJavaApplication
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of extension registered with typeDockerJavaApplication
.Fields inherited from class com.bmuschko.gradle.docker.DockerConventionJvmApplicationPlugin
BUILD_IMAGE_TASK_NAME, DOCKERFILE_TASK_NAME, PUSH_IMAGE_TASK_NAME, SYNC_BUILD_CONTEXT_TASK_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DockerJavaApplication
configureExtension
(ObjectFactory objectFactory, DockerExtension dockerExtension) protected String
findMainClassName
(File classesDir) Methods inherited from class com.bmuschko.gradle.docker.DockerConventionJvmApplicationPlugin
apply
-
Field Details
-
JAVA_APPLICATION_EXTENSION_NAME
The name of extension registered with typeDockerJavaApplication
.- See Also:
-
-
Constructor Details
-
DockerJavaApplicationPlugin
public DockerJavaApplicationPlugin()
-
-
Method Details
-
configureExtension
protected DockerJavaApplication configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension) - Specified by:
configureExtension
in classDockerConventionJvmApplicationPlugin<DockerJavaApplication>
-
findMainClassName
- Specified by:
findMainClassName
in classDockerConventionJvmApplicationPlugin<DockerJavaApplication>
- Throws:
IOException
-