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
Fields Modifier and Type Field Description static String
BUILD_IMAGE_TASK_NAME
The task name that builds the Docker image for the Java application.static String
DOCKERFILE_TASK_NAME
The task name that creates the Docker image for the Java application.static String
PUSH_IMAGE_TASK_NAME
The task name that pushes created Docker image to the repository.static String
SYNC_BUILD_CONTEXT_TASK_NAME
The task name that copies the application files to a temporary directory for image creation.
-
Constructor Summary
Constructors Constructor Description DockerConventionJvmApplicationPlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
apply(Project project)
protected abstract EXT
configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension)
protected abstract String
findMainClassName(File classesDir)
-
-
-
Field Detail
-
SYNC_BUILD_CONTEXT_TASK_NAME
public static final String SYNC_BUILD_CONTEXT_TASK_NAME
The task name that copies the application files to a temporary directory for image creation.- See Also:
- Constant Field Values
-
DOCKERFILE_TASK_NAME
public static final String DOCKERFILE_TASK_NAME
The task name that creates the Docker image for the Java application.- See Also:
- Constant Field Values
-
BUILD_IMAGE_TASK_NAME
public static final String BUILD_IMAGE_TASK_NAME
The task name that builds the Docker image for the Java application.- See Also:
- Constant Field Values
-
PUSH_IMAGE_TASK_NAME
public static final String PUSH_IMAGE_TASK_NAME
The task name that pushes created Docker image to the repository.- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public void apply(Project project)
- Specified by:
apply
in interfacePlugin<EXT extends DockerConventionJvmApplicationExtension>
-
configureExtension
protected abstract EXT configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension)
-
findMainClassName
protected abstract String findMainClassName(File classesDir) throws IOException
- Throws:
IOException
-
-