@@ -42,13 +42,15 @@ IMPORTANT: Only Spring Boot {spring-boot-version} is supported, so change the ve
4242.Gradle Groovy
4343----
4444plugins {
45+ // ...
4546 id 'org.springframework.boot' version '{spring-boot-version}'
4647}
4748----
4849[source,Kotlin,subs="attributes,verbatim",role="secondary"]
4950.Gradle Kotlin
5051----
5152plugins {
53+ // ...
5254 id("org.springframework.boot") version "{spring-boot-version}"
5355}
5456----
@@ -63,6 +65,7 @@ plugins {
6365.Maven
6466----
6567<dependencies>
68+ <!-- ... -->
6669 <dependency>
6770 <groupId>org.springframework.experimental</groupId>
6871 <artifactId>spring-native</artifactId>
@@ -74,13 +77,15 @@ plugins {
7477.Gradle Groovy
7578----
7679dependencies {
80+ // ...
7781 implementation 'org.springframework.experimental:spring-native:{version}'
7882}
7983----
8084[source,Kotlin,subs="attributes,verbatim",role="secondary"]
8185.Gradle Kotlin
8286----
8387dependencies {
88+ // ...
8489 implementation("org.springframework.experimental:spring-native:{version}")
8590}
8691----
@@ -125,13 +130,15 @@ TIP: The transformations also apply to the JVM so this can be applied regardless
125130.Gradle Groovy
126131----
127132plugins {
133+ // ...
128134 id 'org.springframework.experimental.aot' version '{version}'
129135}
130136----
131137[source,Kotlin,subs="attributes,verbatim",role="secondary"]
132138.Gradle Kotlin
133139----
134140plugins {
141+ // ...
135142 id("org.springframework.experimental.aot") version "{version}"
136143}
137144----
@@ -198,6 +205,7 @@ Configure your build to include the required repository for the `spring-native`
198205.Maven
199206----
200207<repositories>
208+ <!-- ... -->
201209 <repository>
202210 <id>spring-{spring-native-repo}</id>
203211 <name>Spring {spring-native-repo}</name>
@@ -209,24 +217,27 @@ Configure your build to include the required repository for the `spring-native`
209217.Gradle Groovy
210218----
211219repositories {
220+ // ...
212221 maven { url 'https://repo.spring.io/{spring-native-repo}' }
213222}
214223----
215224[source,Kotlin,subs="attributes,verbatim",role="secondary"]
216225.Gradle Kotlin
217226----
218227repositories {
228+ // ...
219229 maven { url = uri("https://repo.spring.io/{spring-native-repo}") }
220230}
221231----
222232
223233
224- The Spring AOT plugin also requires a dedicated plugin repository:
234+ The Spring AOT plugin also requires a dedicated plugin repository in the `pom.xml` file for Maven and in the in the `settings.gradle(.kts)` for Gradle.
225235
226236[source,xml,subs="attributes,verbatim",role="primary"]
227237.Maven
228238----
229239<pluginRepositories>
240+ <!-- ... -->
230241 <pluginRepository>
231242 <id>spring-{spring-native-repo}</id>
232243 <name>Spring {spring-native-repo}</name>
@@ -239,6 +250,7 @@ The Spring AOT plugin also requires a dedicated plugin repository:
239250----
240251pluginManagement {
241252 repositories {
253+ // ...
242254 maven { url 'https://repo.spring.io/{spring-native-repo}' }
243255 }
244256}
@@ -248,6 +260,7 @@ pluginManagement {
248260----
249261pluginManagement {
250262 repositories {
263+ // ...
251264 maven { url = uri("https://repo.spring.io/{spring-native-repo}") }
252265 }
253266}
0 commit comments