Skip to content

Commit 0479967

Browse files
committed
Use Gradles task configuration avoidance APIs in the reference docs
see spring-projects#29762 see https://docs.gradle.org/7.0/userguide/task_configuration_avoidance.html
1 parent b60b5fe commit 0479967

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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(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/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', Copy) {
7575
expand(project.properties)
7676
}
7777
----

0 commit comments

Comments
 (0)