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
Modifier and TypeFieldDescriptionstatic final String
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected DockerSpringBootApplication
configureExtension
(ObjectFactory objectFactory, DockerExtension dockerExtension) protected String
findMainClassName
(File classesDir) Methods inherited from class com.bmuschko.gradle.docker.DockerConventionJvmApplicationPlugin
apply
-
Field Details
-
SPRING_BOOT_APPLICATION_EXTENSION_NAME
The name of extension registered with typeDockerSpringBootApplication
.- See Also:
-
-
Constructor Details
-
DockerSpringBootApplicationPlugin
public DockerSpringBootApplicationPlugin()
-
-
Method Details
-
configureExtension
protected DockerSpringBootApplication configureExtension(ObjectFactory objectFactory, DockerExtension dockerExtension) - Specified by:
configureExtension
in classDockerConventionJvmApplicationPlugin<DockerSpringBootApplication>
-
findMainClassName
- Specified by:
findMainClassName
in classDockerConventionJvmApplicationPlugin<DockerSpringBootApplication>
- Throws:
IOException
-