Package com.bmuschko.gradle.docker
Class DockerSpringBootApplicationPlugin
- java.lang.Object
-
- com.bmuschko.gradle.docker.DockerConventionJvmApplicationPlugin<DockerSpringBootApplication>
-
- com.bmuschko.gradle.docker.DockerSpringBootApplicationPlugin
-
public class DockerSpringBootApplicationPlugin extends DockerConventionJvmApplicationPlugin<DockerSpringBootApplication>
Opinionated Gradle plugin for creating and pushing a Docker image for a Spring Boot application.This plugin can be configured with the help of
DockerSpringBootApplication
.- Since:
- 3.4.5
-
-
Field Summary
Fields Modifier and Type Field Description static String
SPRING_BOOT_APPLICATION_EXTENSION_NAME
The name of extension registered with typeDockerSpringBootApplication
.-
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 DockerSpringBootApplicationPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DockerSpringBootApplication
configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension)
protected String
findMainClassName(File classesDir)
-
Methods inherited from class com.bmuschko.gradle.docker.DockerConventionJvmApplicationPlugin
apply
-
-
-
-
Field Detail
-
SPRING_BOOT_APPLICATION_EXTENSION_NAME
public static final String SPRING_BOOT_APPLICATION_EXTENSION_NAME
The name of extension registered with typeDockerSpringBootApplication
.- See Also:
- Constant Field Values
-
-
Method Detail
-
configureExtension
protected DockerSpringBootApplication configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension)
- Specified by:
configureExtension
in classDockerConventionJvmApplicationPlugin<DockerSpringBootApplication>
-
findMainClassName
protected String findMainClassName(File classesDir) throws IOException
- Specified by:
findMainClassName
in classDockerConventionJvmApplicationPlugin<DockerSpringBootApplication>
- Throws:
IOException
-
-