com.bmuschko.gradle.docker.DockerSpringBootApplication.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-docker-plugin Show documentation
Show all versions of gradle-docker-plugin Show documentation
Gradle plugin for managing Docker images and containers.
package com.bmuschko.gradle.docker
import groovy.transform.CompileStatic
import org.gradle.api.Project
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Property
/**
* @since 3.4.5
*/
@CompileStatic
class DockerSpringBootApplication {
final Property baseImage
final ListProperty ports
final Property tag
DockerSpringBootApplication(Project project) {
baseImage = project.objects.property(String)
baseImage.set('openjdk:jre-alpine')
ports = project.objects.listProperty(Integer)
ports.set([8080])
tag = project.objects.property(String)
}
}