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
FieldsModifier and TypeFieldDescriptionstatic final StringThe task name that builds the Docker image for the Java application.static final StringThe task name that creates the Docker image for the Java application.static final StringThe task name that pushes created Docker image to the repository.static final StringThe task name that copies the application files to a temporary directory for image creation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract EXTconfigureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension) protected abstract StringfindMainClassName(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:
applyin interfacePlugin<EXT extends DockerConventionJvmApplicationExtension>
-
configureExtension
protected abstract EXT configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension) -
findMainClassName
- Throws:
IOException
-