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
pull/11866/head
Phillip Webb 7 years ago
parent 09181d6b16
commit 7c5042d079

@ -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 {
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 {
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 {
@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() {

Loading…
Cancel
Save