Skip to content

Commit

Permalink
Merge pull request #30000 from larsgrefer
Browse files Browse the repository at this point in the history
* gh-30000:
  Use Gradle's configuration avoidance APIs in the reference docs

Closes gh-30000
  • Loading branch information
wilkinsona committed Mar 3, 2022
2 parents e7566e9 + 99a8374 commit 2b98fce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Expand Up @@ -33,7 +33,9 @@ If you are using an `additional-spring-configuration-metadata.json` file, the `c

[source,gradle,indent=0,subs="verbatim"]
----
compileJava.inputs.files(processResources)
tasks.named('compileJava') {
inputs.files(tasks.named('processResources'))
}
----

This dependency ensures that the additional metadata is available when the annotation processor runs during compilation.
Expand Down
Expand Up @@ -30,7 +30,7 @@ The following example shows the equivalent Gradle configuration:

[source,gradle,indent=0,subs="verbatim"]
----
bootJar {
tasks.named('bootJar') {
launchScript()
}
----
Expand Down
Expand Up @@ -71,7 +71,7 @@ You can automatically expand properties from the Gradle project by configuring t

[source,gradle,indent=0,subs="verbatim"]
----
processResources {
tasks.named('processResources') {
expand(project.properties)
}
----
Expand Down

0 comments on commit 2b98fce

Please sign in to comment.