Browse Source

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 8 years ago
parent
commit
7c5042d079
  1. 4
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc/getting-started.adoc
  2. 3
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/gradle/getting-started/apply-plugin-milestone.gradle
  3. 3
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/gradle/getting-started/apply-plugin-snapshot.gradle
  4. 8
      spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/docs/GettingStartedDocumentationTests.java

4
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc/getting-started.adoc

@ -14,13 +14,13 @@ endif::[] @@ -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::[]

3
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/gradle/getting-started/apply-plugin-milestone.gradle

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

3
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/gradle/getting-started/apply-plugin-snapshot.gradle

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

8
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/docs/GettingStartedDocumentationTests.java

@ -31,12 +31,8 @@ public class GettingStartedDocumentationTests { @@ -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