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"]
[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::[]
ifeval::["{version-type}" == "SNAPSHOT"]
[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::[]

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

@ -5,9 +5,6 @@ buildscript {
dependencies {
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
public GradleBuild gradleBuild = new GradleBuild();
@Test
public void applyPluginSnapshotExampleEvaluatesSuccessfully() {
this.gradleBuild
.script("src/main/gradle/getting-started/apply-plugin-snapshot.gradle")
.build();
}
// NOTE: We can't run any `apply-plugin` tests because during a release the
// jar won't be there
@Test
public void typicalPluginsAppliesExceptedPlugins() {

Loading…
Cancel
Save