Always include plugin classpath in sample gradle

Update a couple of the `spring-boot-gradle-plugin` sample gradle flies
so that they include the running classpath. The additional lines are
contained within a tag which is ultimately filtered from the final
documentation.

Fixes gh-11857
This commit is contained in:
Phillip Webb 2018-01-30 20:08:04 -08:00
parent d478e9bf57
commit 6dddceacad
3 changed files with 9 additions and 3 deletions

View File

@ -14,13 +14,13 @@ endif::[]
ifeval::["{version-type}" == "MILESTONE"] ifeval::["{version-type}" == "MILESTONE"]
[source,groovy,indent=0,subs="verbatim,attributes"] [source,groovy,indent=0,subs="verbatim,attributes"]
---- ----
include::../gradle/getting-started/apply-plugin-milestone.gradle[] include::../gradle/getting-started/apply-plugin-milestone.gradle[tags=!buildclasspath]
---- ----
endif::[] endif::[]
ifeval::["{version-type}" == "SNAPSHOT"] ifeval::["{version-type}" == "SNAPSHOT"]
[source,groovy,indent=0,subs="verbatim,attributes"] [source,groovy,indent=0,subs="verbatim,attributes"]
---- ----
include::../gradle/getting-started/apply-plugin-snapshot.gradle[] include::../gradle/getting-started/apply-plugin-snapshot.gradle[tags=!buildclasspath]
---- ----
endif::[] endif::[]
@ -40,4 +40,4 @@ include::../gradle/getting-started/typical-plugins.gradle[tags=apply]
---- ----
To learn more about how the Spring Boot plugin behaves when other plugins are applied To learn more about how the Spring Boot plugin behaves when other plugins are applied
please see the section on <<reacting-to-other-plugins, reacting to other plugins>>. please see the section on <<reacting-to-other-plugins, reacting to other plugins>>.

View File

@ -5,6 +5,9 @@ buildscript {
dependencies { dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{version}' classpath 'org.springframework.boot:spring-boot-gradle-plugin:{version}'
// tag::buildclasspath[]
classpath files(pluginClasspath.split(','))
// end::buildclasspath[]
} }
} }

View File

@ -5,6 +5,9 @@ buildscript {
dependencies { dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{version}' classpath 'org.springframework.boot:spring-boot-gradle-plugin:{version}'
// tag::buildclasspath[]
classpath files(pluginClasspath.split(','))
// end::buildclasspath[]
} }
} }