Skip to content

Commit b956754

Browse files
committed
Remove readonly flags from mojo parameters
Closes gh-43699
1 parent 39a1894 commit b956754

File tree

1 file changed

+12
-12
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven

1 file changed

+12
-12
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildImageMojo.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -107,84 +107,84 @@ public abstract class BuildImageMojo extends AbstractPackagerMojo {
107107
* property.
108108
* @since 2.3.0
109109
*/
110-
@Parameter(property = "spring-boot.build-image.imageName", readonly = true)
110+
@Parameter(property = "spring-boot.build-image.imageName")
111111
String imageName;
112112

113113
/**
114114
* Alias for {@link Image#builder} to support configuration through command-line
115115
* property.
116116
* @since 2.3.0
117117
*/
118-
@Parameter(property = "spring-boot.build-image.builder", readonly = true)
118+
@Parameter(property = "spring-boot.build-image.builder")
119119
String imageBuilder;
120120

121121
/**
122122
* Alias for {@link Image#trustBuilder} to support configuration through command-line
123123
* property.
124124
*/
125-
@Parameter(property = "spring-boot.build-image.trustBuilder", readonly = true)
125+
@Parameter(property = "spring-boot.build-image.trustBuilder")
126126
Boolean trustBuilder;
127127

128128
/**
129129
* Alias for {@link Image#runImage} to support configuration through command-line
130130
* property.
131131
* @since 2.3.1
132132
*/
133-
@Parameter(property = "spring-boot.build-image.runImage", readonly = true)
133+
@Parameter(property = "spring-boot.build-image.runImage")
134134
String runImage;
135135

136136
/**
137137
* Alias for {@link Image#cleanCache} to support configuration through command-line
138138
* property.
139139
* @since 2.4.0
140140
*/
141-
@Parameter(property = "spring-boot.build-image.cleanCache", readonly = true)
141+
@Parameter(property = "spring-boot.build-image.cleanCache")
142142
Boolean cleanCache;
143143

144144
/**
145145
* Alias for {@link Image#pullPolicy} to support configuration through command-line
146146
* property.
147147
*/
148-
@Parameter(property = "spring-boot.build-image.pullPolicy", readonly = true)
148+
@Parameter(property = "spring-boot.build-image.pullPolicy")
149149
PullPolicy pullPolicy;
150150

151151
/**
152152
* Alias for {@link Image#publish} to support configuration through command-line
153153
* property.
154154
*/
155-
@Parameter(property = "spring-boot.build-image.publish", readonly = true)
155+
@Parameter(property = "spring-boot.build-image.publish")
156156
Boolean publish;
157157

158158
/**
159159
* Alias for {@link Image#network} to support configuration through command-line
160160
* property.
161161
* @since 2.6.0
162162
*/
163-
@Parameter(property = "spring-boot.build-image.network", readonly = true)
163+
@Parameter(property = "spring-boot.build-image.network")
164164
String network;
165165

166166
/**
167167
* Alias for {@link Image#createdDate} to support configuration through command-line
168168
* property.
169169
* @since 3.1.0
170170
*/
171-
@Parameter(property = "spring-boot.build-image.createdDate", readonly = true)
171+
@Parameter(property = "spring-boot.build-image.createdDate")
172172
String createdDate;
173173

174174
/**
175175
* Alias for {@link Image#applicationDirectory} to support configuration through
176176
* command-line property.
177177
* @since 3.1.0
178178
*/
179-
@Parameter(property = "spring-boot.build-image.applicationDirectory", readonly = true)
179+
@Parameter(property = "spring-boot.build-image.applicationDirectory")
180180
String applicationDirectory;
181181

182182
/**
183183
* Alias for {@link Image#imagePlatform} to support configuration through command-line
184184
* property.
185185
* @since 3.4.0
186186
*/
187-
@Parameter(property = "spring-boot.build-image.imagePlatform", readonly = true)
187+
@Parameter(property = "spring-boot.build-image.imagePlatform")
188188
String imagePlatform;
189189

190190
/**

0 commit comments

Comments
 (0)