You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option to customize cache volume names when building an image
This commit adds configuration to the Maven and Gradle plugins to
allow specifying the names of build and launch cache volumes provided
to the CNB builder.
See gh-28292
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/BuildRequest.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/build/Lifecycle.java
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@
39
39
* @author Phillip Webb
40
40
* @author Scott Frederick
41
41
* @author Jeroen Meijer
42
+
* @author Julian Liebig
42
43
*/
43
44
classLifecycleimplementsCloseable {
44
45
@@ -86,16 +87,19 @@ class Lifecycle implements Closeable {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,11 @@ The value supplied will be passed unvalidated to Docker when creating the builde
181
181
| A list of one or more additional tags to apply to the generated image.
182
182
|
183
183
184
+
| `cacheVolumeNames`
185
+
|
186
+
| Cache volume names that should be used by the builder instead of generating random names.
187
+
|
188
+
184
189
|===
185
190
186
191
NOTE: The plugin detects the target Java compatibility of the project using the JavaPlugin's `targetCompatibility` property.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImage.java
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@
60
60
* @author Scott Frederick
61
61
* @author Rafael Ceccone
62
62
* @author Jeroen Meijer
63
+
* @author Julian Liebig
63
64
* @since 2.3.0
64
65
*/
65
66
publicclassBootBuildImageextendsDefaultTask {
@@ -98,6 +99,8 @@ public class BootBuildImage extends DefaultTask {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/packaging-oci-image.adoc
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,10 @@ The value supplied will be passed unvalidated to Docker when creating the builde
187
187
| One or more additional tags to apply to the generated image.
188
188
|
189
189
190
+
| `cacheVolumeNames`
191
+
| Cache volume names that should be used by the builder instead of generating random names.
192
+
|
193
+
190
194
|===
191
195
192
196
NOTE: The plugin detects the target Java compatibility of the project using the compiler's plugin configuration or the `maven.compiler.target` property.
0 commit comments