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
Fields Modifier and Type Field Description static String
JAVA_APPLICATION_EXTENSION_NAME
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
Constructors Constructor Description DockerJavaApplicationPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DockerJavaApplication
configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension)
protected String
findMainClassName(File classesDir)
-
Methods inherited from class com.bmuschko.gradle.docker.DockerConventionJvmApplicationPlugin
apply
-
-
-
-
Field Detail
-
JAVA_APPLICATION_EXTENSION_NAME
public static final String JAVA_APPLICATION_EXTENSION_NAME
The name of extension registered with typeDockerJavaApplication
.- See Also:
- Constant Field Values
-
-
Method Detail
-
configureExtension
protected DockerJavaApplication configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension)
- Specified by:
configureExtension
in classDockerConventionJvmApplicationPlugin<DockerJavaApplication>
-
findMainClassName
protected String findMainClassName(File classesDir) throws IOException
- Specified by:
findMainClassName
in classDockerConventionJvmApplicationPlugin<DockerJavaApplication>
- Throws:
IOException
-
-