Package com.bmuschko.gradle.docker
Class DockerConventionJvmApplicationPlugin<EXT extends DockerConventionJvmApplicationExtension>
java.lang.Object
com.bmuschko.gradle.docker.DockerConventionJvmApplicationPlugin<EXT>
- Direct Known Subclasses:
DockerJavaApplicationPlugin
,DockerSpringBootApplicationPlugin
public abstract class DockerConventionJvmApplicationPlugin<EXT extends DockerConventionJvmApplicationExtension>
extends Object
implements Plugin<Project>
The abstract class for all conventional JVM application plugins.
- Since:
- 5.2.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The task name that builds the Docker image for the Java application.static final String
The task name that creates the Docker image for the Java application.static final String
The task name that pushes created Docker image to the repository.static final String
The task name that copies the application files to a temporary directory for image creation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract EXT
configureExtension
(ObjectFactory objectFactory, DockerExtension dockerExtension) protected abstract String
findMainClassName
(File classesDir)
-
Field Details
-
SYNC_BUILD_CONTEXT_TASK_NAME
The task name that copies the application files to a temporary directory for image creation.- See Also:
-
DOCKERFILE_TASK_NAME
The task name that creates the Docker image for the Java application.- See Also:
-
BUILD_IMAGE_TASK_NAME
The task name that builds the Docker image for the Java application.- See Also:
-
PUSH_IMAGE_TASK_NAME
The task name that pushes created Docker image to the repository.- See Also:
-
-
Constructor Details
-
DockerConventionJvmApplicationPlugin
public DockerConventionJvmApplicationPlugin()
-
-
Method Details
-
apply
- Specified by:
apply
in interfacePlugin<EXT extends DockerConventionJvmApplicationExtension>
-
configureExtension
protected abstract EXT configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension) -
findMainClassName
- Throws:
IOException
-