Skip to content

Commit 2b98fce

Browse files
committed
Merge pull request #30000 from larsgrefer
* gh-30000: Use Gradle's configuration avoidance APIs in the reference docs Closes gh-30000
2 parents e7566e9 + 99a8374 commit 2b98fce

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/configuration-metadata/annotation-processor.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ If you are using an `additional-spring-configuration-metadata.json` file, the `c
3333

3434
[source,gradle,indent=0,subs="verbatim"]
3535
----
36-
compileJava.inputs.files(processResources)
36+
tasks.named('compileJava') {
37+
inputs.files(tasks.named('processResources'))
38+
}
3739
----
3840

3941
This dependency ensures that the additional metadata is available when the annotation processor runs during compilation.

spring-boot-project/spring-boot-docs/src/docs/asciidoc/deployment/installing.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The following example shows the equivalent Gradle configuration:
3030

3131
[source,gradle,indent=0,subs="verbatim"]
3232
----
33-
bootJar {
33+
tasks.named('bootJar') {
3434
launchScript()
3535
}
3636
----

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/properties-and-configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ You can automatically expand properties from the Gradle project by configuring t
7171

7272
[source,gradle,indent=0,subs="verbatim"]
7373
----
74-
processResources {
74+
tasks.named('processResources') {
7575
expand(project.properties)
7676
}
7777
----

0 commit comments

Comments
 (0)