Skip to content

Commit fda37ea

Browse files
committed
Merge pull request #23753 from omlip
* pr/23753: Expose BootBuildImage's cleanCache property as a command-line option Closes gh-23753
2 parents 9efff2a + ded2a80 commit fda37ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/docs/asciidoc/packaging-oci-image.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Acceptable values are `ALWAYS`, `NEVER`, and `IF_NOT_PRESENT`.
129129
|
130130

131131
| `cleanCache`
132-
|
132+
| `--cleanCache`
133133
| Whether to clean the cache before building.
134134
| `false`
135135

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ public boolean isCleanCache() {
214214
* Sets whether caches should be cleaned before packaging.
215215
* @param cleanCache {@code true} to clean the cache, otherwise {@code false}.
216216
*/
217+
@Option(option = "cleanCache", description = "Clean caches before packaging")
217218
public void setCleanCache(boolean cleanCache) {
218219
this.cleanCache = cleanCache;
219220
}

0 commit comments

Comments
 (0)