Commit 7c5042d0 authored by Phillip Webb's avatar Phillip Webb

Don't run `apply-plugin` tests

Stop running apply-plugin tests as part of the build since during a
release the version number will change and the jar will not be
available.

Fixes gh-11857
parent 09181d6b
...@@ -14,13 +14,13 @@ endif::[] ...@@ -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[tags=!buildclasspath] include::../gradle/getting-started/apply-plugin-milestone.gradle[]
---- ----
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[tags=!buildclasspath] include::../gradle/getting-started/apply-plugin-snapshot.gradle[]
---- ----
endif::[] endif::[]
......
...@@ -5,9 +5,6 @@ buildscript { ...@@ -5,9 +5,6 @@ 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[]
} }
} }
......
...@@ -5,9 +5,6 @@ buildscript { ...@@ -5,9 +5,6 @@ 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[]
} }
} }
......
...@@ -31,12 +31,8 @@ public class GettingStartedDocumentationTests { ...@@ -31,12 +31,8 @@ public class GettingStartedDocumentationTests {
@Rule @Rule
public GradleBuild gradleBuild = new GradleBuild(); public GradleBuild gradleBuild = new GradleBuild();
@Test // NOTE: We can't run any `apply-plugin` tests because during a release the
public void applyPluginSnapshotExampleEvaluatesSuccessfully() { // jar won't be there
this.gradleBuild
.script("src/main/gradle/getting-started/apply-plugin-snapshot.gradle")
.build();
}
@Test @Test
public void typicalPluginsAppliesExceptedPlugins() { public void typicalPluginsAppliesExceptedPlugins() {
......
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