mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Merge pull request #30000 from larsgrefer
* gh-30000: Use Gradle's configuration avoidance APIs in the reference docs Closes gh-30000
This commit is contained in:
commit
2b98fce639
@ -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.
|
||||
|
@ -30,7 +30,7 @@ The following example shows the equivalent Gradle configuration:
|
||||
|
||||
[source,gradle,indent=0,subs="verbatim"]
|
||||
----
|
||||
bootJar {
|
||||
tasks.named('bootJar') {
|
||||
launchScript()
|
||||
}
|
||||
----
|
||||
|
@ -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)
|
||||
}
|
||||
----
|
||||
|
Loading…
Reference in New Issue
Block a user