@@ -18,6 +18,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
18
18
<properties >
19
19
<java .version>11</java .version>
20
20
<spring-data-bom .version>2021.0.2</spring-data-bom .version>
21
+ <spring-native .version>0.10.0</spring-native .version>
21
22
</properties >
22
23
23
24
<dependencyManagement >
@@ -71,7 +72,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
71
72
<dependency >
72
73
<groupId >org.springframework.data</groupId >
73
74
<artifactId >spring-data-rest-hal-explorer</artifactId >
74
- <scope >runtime</scope >
75
+ <!-- < scope>runtime</scope> -- >
75
76
</dependency >
76
77
77
78
<dependency >
@@ -124,11 +125,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
124
125
125
126
<!-- Misc -->
126
127
128
+ <!--
127
129
<dependency>
128
130
<groupId>org.springframework.boot</groupId>
129
131
<artifactId>spring-boot-devtools</artifactId>
130
132
<optional>true</optional>
131
133
</dependency>
134
+ -->
132
135
133
136
<dependency >
134
137
<groupId >org.javamoney.moneta</groupId >
@@ -146,6 +149,20 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
146
149
<artifactId >json-path</artifactId >
147
150
</dependency >
148
151
152
+ <!-- Spring native -->
153
+
154
+ <dependency >
155
+ <groupId >org.springframework.experimental</groupId >
156
+ <artifactId >spring-native</artifactId >
157
+ <version >${spring-native.version} </version >
158
+ </dependency >
159
+
160
+ <dependency >
161
+ <groupId >org.springframework.experimental</groupId >
162
+ <artifactId >spring-native-configuration</artifactId >
163
+ <version >${spring-native.version} </version >
164
+ </dependency >
165
+
149
166
</dependencies >
150
167
151
168
<build >
@@ -156,13 +173,21 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
156
173
<artifactId >spring-boot-maven-plugin</artifactId >
157
174
<configuration >
158
175
<executable >true</executable >
176
+ <image >
177
+ <builder >paketobuildpacks/builder:tiny</builder >
178
+ <env >
179
+ <BP_NATIVE_IMAGE >true</BP_NATIVE_IMAGE >
180
+ </env >
181
+ </image >
159
182
</configuration >
160
183
<dependencies >
184
+ <!--
161
185
<dependency>
162
186
<groupId>org.springframework.boot.experimental</groupId>
163
187
<artifactId>spring-boot-thin-layout</artifactId>
164
- <version >1.0.27.BUILD-SNAPSHOT </version >
188
+ <version>1.0.27.RELEASE </version>
165
189
</dependency>
190
+ -->
166
191
</dependencies >
167
192
</plugin >
168
193
@@ -186,6 +211,26 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
186
211
</dependencies >
187
212
</plugin >
188
213
214
+ <plugin >
215
+ <groupId >org.springframework.experimental</groupId >
216
+ <artifactId >spring-aot-maven-plugin</artifactId >
217
+ <version >${spring-native.version} </version >
218
+ <executions >
219
+ <execution >
220
+ <id >generate</id >
221
+ <goals >
222
+ <goal >generate</goal >
223
+ </goals >
224
+ </execution >
225
+ <execution >
226
+ <id >test-generate</id >
227
+ <goals >
228
+ <goal >test-generate</goal >
229
+ </goals >
230
+ </execution >
231
+ </executions >
232
+ </plugin >
233
+
189
234
</plugins >
190
235
</build >
191
236
@@ -201,6 +246,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
201
246
<enabled >false</enabled >
202
247
</snapshots >
203
248
</repository >
249
+ <repository >
250
+ <id >spring-release</id >
251
+ <url >https://repo.spring.io/release</url >
252
+ <snapshots >
253
+ <enabled >false</enabled >
254
+ </snapshots >
255
+ </repository >
204
256
</repositories >
205
257
206
258
<pluginRepositories >
@@ -215,6 +267,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
215
267
<enabled >false</enabled >
216
268
</snapshots >
217
269
</pluginRepository >
270
+ <pluginRepository >
271
+ <id >spring-release</id >
272
+ <url >https://repo.spring.io/release</url >
273
+ <snapshots >
274
+ <enabled >false</enabled >
275
+ </snapshots >
276
+ </pluginRepository >
218
277
</pluginRepositories >
219
278
220
279
</project >
0 commit comments