Add command-line options for Gradle bootBuildImage parameters

This commit adds support for setting the image name and builder
parameters of the Gradle bootBuildImage task using command-line
options as an alternative to DSL configuration.

See gh-20520
This commit is contained in:
Scott Frederick
2020-03-19 15:21:34 -05:00
parent b30e5a60c5
commit 3f378e1276
4 changed files with 61 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
plugins {
id 'java'
id 'org.springframework.boot' version '{version}'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
bootBuildImage {
imageName = "example.com/test-image-name"
}