@@ -20,6 +20,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
20
20
<java .version>17</java .version>
21
21
<jmolecules .version>2022.1.0</jmolecules .version>
22
22
<moduliths .version>1.3.0</moduliths .version>
23
+ <spring-native .version>0.12.0</spring-native .version>
23
24
</properties >
24
25
25
26
<dependencyManagement >
@@ -82,7 +83,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
82
83
<dependency >
83
84
<groupId >org.springframework.data</groupId >
84
85
<artifactId >spring-data-rest-hal-explorer</artifactId >
85
- <scope >runtime</scope >
86
+ <!-- < scope>runtime</scope> -- >
86
87
</dependency >
87
88
88
89
<dependency >
@@ -162,7 +163,21 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
162
163
<artifactId >spring-boot-configuration-processor</artifactId >
163
164
<optional >true</optional >
164
165
</dependency >
165
-
166
+
167
+ <!-- Spring native -->
168
+
169
+ <dependency >
170
+ <groupId >org.springframework.experimental</groupId >
171
+ <artifactId >spring-native</artifactId >
172
+ <version >${spring-native.version} </version >
173
+ </dependency >
174
+
175
+ <dependency >
176
+ <groupId >org.springframework.experimental</groupId >
177
+ <artifactId >spring-native-configuration</artifactId >
178
+ <version >${spring-native.version} </version >
179
+ </dependency >
180
+
166
181
</dependencies >
167
182
168
183
<profiles >
@@ -206,6 +221,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
206
221
207
222
</dependencies >
208
223
</profile >
224
+
225
+ <profile >
226
+ <id >native</id >
227
+ <build >
228
+ <defaultGoal >spring-boot:build-image</defaultGoal >
229
+ </build >
230
+ </profile >
231
+
209
232
</profiles >
210
233
211
234
<build >
@@ -216,13 +239,21 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
216
239
<artifactId >spring-boot-maven-plugin</artifactId >
217
240
<configuration >
218
241
<executable >true</executable >
242
+ <image >
243
+ <builder >paketobuildpacks/builder:tiny</builder >
244
+ <env >
245
+ <BP_NATIVE_IMAGE >true</BP_NATIVE_IMAGE >
246
+ </env >
247
+ </image >
219
248
</configuration >
220
249
<dependencies >
250
+ <!--
221
251
<dependency>
222
252
<groupId>org.springframework.boot.experimental</groupId>
223
253
<artifactId>spring-boot-thin-layout</artifactId>
224
254
<version>1.0.28.RELEASE</version>
225
255
</dependency>
256
+ -->
226
257
</dependencies >
227
258
</plugin >
228
259
@@ -246,6 +277,28 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
246
277
</dependencies >
247
278
</plugin >
248
279
280
+ <plugin >
281
+ <groupId >org.springframework.experimental</groupId >
282
+ <artifactId >spring-aot-maven-plugin</artifactId >
283
+ <version >${spring-native.version} </version >
284
+ <executions >
285
+ <execution >
286
+ <id >generate</id >
287
+ <goals >
288
+ <goal >generate</goal >
289
+ </goals >
290
+ </execution >
291
+ <!--
292
+ <execution>
293
+ <id>test-generate</id>
294
+ <goals>
295
+ <goal>test-generate</goal>
296
+ </goals>
297
+ </execution>
298
+ -->
299
+ </executions >
300
+ </plugin >
301
+
249
302
</plugins >
250
303
</build >
251
304
@@ -264,6 +317,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
264
317
<enabled >false</enabled >
265
318
</snapshots >
266
319
</repository >
320
+ <repository >
321
+ <id >spring-release</id >
322
+ <url >https://repo.spring.io/release</url >
323
+ <snapshots >
324
+ <enabled >false</enabled >
325
+ </snapshots >
326
+ </repository >
267
327
</repositories >
268
328
269
329
<pluginRepositories >
@@ -281,6 +341,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
281
341
<enabled >false</enabled >
282
342
</snapshots >
283
343
</pluginRepository >
344
+ <pluginRepository >
345
+ <id >spring-release</id >
346
+ <url >https://repo.spring.io/release</url >
347
+ <snapshots >
348
+ <enabled >false</enabled >
349
+ </snapshots >
350
+ </pluginRepository >
284
351
</pluginRepositories >
285
352
286
353
</project >
0 commit comments