Commit 6dddceac authored by Phillip Webb's avatar Phillip Webb

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
parent d478e9bf
......@@ -14,13 +14,13 @@ endif::[]
ifeval::["{version-type}" == "MILESTONE"]
[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::[]
ifeval::["{version-type}" == "SNAPSHOT"]
[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::[]
......@@ -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
please see the section on <<reacting-to-other-plugins, reacting to other plugins>>.
\ No newline at end of file
please see the section on <<reacting-to-other-plugins, reacting to other plugins>>.
......@@ -5,6 +5,9 @@ buildscript {
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{version}'
// tag::buildclasspath[]
classpath files(pluginClasspath.split(','))
// end::buildclasspath[]
}
}
......
......@@ -5,6 +5,9 @@ buildscript {
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:{version}'
// tag::buildclasspath[]
classpath files(pluginClasspath.split(','))
// end::buildclasspath[]
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment