Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit ea0e9f4

Browse files
committed
Clarify Spring Native AOT Gradle Plugin repository documentation
Closes gh-582
1 parent 97d37ca commit ea0e9f4

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

spring-native-docs/src/main/asciidoc/getting-started-buildpacks.adoc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ IMPORTANT: Only Spring Boot {spring-boot-version} is supported, so change the ve
4242
.Gradle Groovy
4343
----
4444
plugins {
45+
// ...
4546
id 'org.springframework.boot' version '{spring-boot-version}'
4647
}
4748
----
4849
[source,Kotlin,subs="attributes,verbatim",role="secondary"]
4950
.Gradle Kotlin
5051
----
5152
plugins {
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
----
7679
dependencies {
80+
// ...
7781
implementation 'org.springframework.experimental:spring-native:{version}'
7882
}
7983
----
8084
[source,Kotlin,subs="attributes,verbatim",role="secondary"]
8185
.Gradle Kotlin
8286
----
8387
dependencies {
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
----
127132
plugins {
133+
// ...
128134
id 'org.springframework.experimental.aot' version '{version}'
129135
}
130136
----
131137
[source,Kotlin,subs="attributes,verbatim",role="secondary"]
132138
.Gradle Kotlin
133139
----
134140
plugins {
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
----
211219
repositories {
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
----
218227
repositories {
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
----
240251
pluginManagement {
241252
repositories {
253+
// ...
242254
maven { url 'https://repo.spring.io/{spring-native-repo}' }
243255
}
244256
}
@@ -248,6 +260,7 @@ pluginManagement {
248260
----
249261
pluginManagement {
250262
repositories {
263+
// ...
251264
maven { url = uri("https://repo.spring.io/{spring-native-repo}") }
252265
}
253266
}

spring-native-docs/src/main/asciidoc/getting-started-native-image.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ The Spring AOT plugin also requires a dedicated plugin repository:
186186
[source,xml,subs="attributes,verbatim"]
187187
----
188188
<pluginRepositories>
189+
<!-- ... -->
189190
<pluginRepository>
190191
<id>spring-{spring-native-repo}</id>
191192
<name>Spring {spring-native-repo}</name>

spring-native-docs/src/main/asciidoc/spring-aot.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ VSCode uses the same build tooling as Eclipse, so it should work the same.
7575
[[spring-aot-gradle]]
7676
=== Gradle
7777

78-
You can configure the Gradle Spring AOT plugin by declaring first the plugin repositories in your settings.gradle(.kts) file:
78+
You can configure the Gradle Spring AOT plugin by declaring first the plugin repositories in your `settings.gradle(.kts)` file:
7979

8080
[source,groovy,subs="attributes,verbatim",role="primary"]
8181
.Gradle Groovy
8282
----
8383
pluginManagement {
8484
repositories {
85+
// ...
8586
maven { url 'https://repo.spring.io/{spring-native-repo}' }
8687
}
8788
}
@@ -91,6 +92,7 @@ pluginManagement {
9192
----
9293
pluginManagement {
9394
repositories {
95+
// ...
9496
maven { url = uri("https://repo.spring.io/{spring-native-repo}") }
9597
}
9698
}
@@ -100,13 +102,15 @@ pluginManagement {
100102
.Gradle Groovy
101103
----
102104
plugins {
105+
// ...
103106
id 'org.springframework.experimental.aot' version '{version}'
104107
}
105108
----
106109
[source,Kotlin,subs="attributes,verbatim",role="secondary"]
107110
.Gradle Kotlin
108111
----
109112
plugins {
113+
// ...
110114
id("org.springframework.experimental.aot") version "{version}"
111115
}
112116
----

0 commit comments

Comments
 (0)