Skip to content

Commit

Permalink
Always include plugin classpath in sample gradle
Browse files Browse the repository at this point in the history
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 spring-projectsgh-11857
  • Loading branch information
philwebb committed Jan 31, 2018
1 parent d478e9b commit 6dddcea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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::[]

Expand All @@ -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>>.
please see the section on <<reacting-to-other-plugins, reacting to other plugins>>.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ buildscript {

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ buildscript {

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

Expand Down

0 comments on commit 6dddcea

Please sign in to comment.