Skip to content

Commit fe10ea7

Browse files
committed
Merge branch '1.4.x' into 1.5.x
2 parents cf28663 + ad3e5c0 commit fe10ea7

File tree

35 files changed

+162
-33
lines changed

35 files changed

+162
-33
lines changed

spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ the `spring-boot` plugin:
182182
classpath("org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}")
183183
}
184184
}
185-
apply plugin: 'spring-boot'
185+
apply plugin: 'org.springframework.boot'
186186
----
187187

188188
If you are using a milestone or snapshot release you will also need to add appropriate

spring-boot-docs/src/main/asciidoc/deployment.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ With Gradle, the equivalent configuration would be:
387387

388388
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
389389
----
390-
apply plugin: 'spring-boot'
390+
apply plugin: 'org.springframework.boot'
391391
392392
springBoot {
393393
executable = true

spring-boot-docs/src/main/asciidoc/getting-started.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ endif::release[]
240240
}
241241
242242
apply plugin: 'java'
243-
apply plugin: 'spring-boot'
243+
apply plugin: 'org.springframework.boot'
244244
245245
jar {
246246
baseName = 'myproject'

spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ endif::[]
257257
}
258258
259259
apply plugin: 'java'
260-
apply plugin: 'spring-boot'
260+
apply plugin: 'org.springframework.boot'
261261
262262
repositories {
263263
ifeval::["{spring-boot-repo}" != "release"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2012-2016 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.boot.gradle;
18+
19+
import org.gradle.tooling.ProjectConnection;
20+
import org.junit.Rule;
21+
import org.junit.Test;
22+
23+
import org.springframework.boot.test.rule.OutputCapture;
24+
25+
import static org.assertj.core.api.Assertions.assertThat;
26+
27+
/**
28+
* Tests for using the old, deprecated plugin ID.
29+
*
30+
* @author Andy Wilkinson
31+
*/
32+
public class DeprecatedPluginTests {
33+
34+
private ProjectConnection project;
35+
36+
private static final String BOOT_VERSION = Versions.getBootVersion();
37+
38+
@Rule
39+
public OutputCapture output = new OutputCapture();
40+
41+
@Test
42+
public void deprecatedIdWorksAndLogsAWarning() throws Exception {
43+
this.project = new ProjectCreator().createProject("deprecated-plugin");
44+
this.project.newBuild().forTasks("build")
45+
.withArguments("-PbootVersion=" + BOOT_VERSION, "--stacktrace").run();
46+
assertThat(this.output.toString())
47+
.contains("The plugin id 'spring-boot' is deprecated");
48+
}
49+
50+
}

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/boot-run-resources/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
apply plugin: 'java'
11-
apply plugin: 'spring-boot'
11+
apply plugin: 'org.springframework.boot'
1212

1313
repositories {
1414
mavenLocal()

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/classifier-extension.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99

1010
apply plugin: 'java'
1111
apply plugin: 'maven'
12-
apply plugin: 'spring-boot'
12+
apply plugin: 'org.springframework.boot'
1313

1414
jar {
1515
baseName = 'classifier-extension'

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/classifier.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99

1010
apply plugin: 'java'
1111
apply plugin: 'maven'
12-
apply plugin: 'spring-boot'
12+
apply plugin: 'org.springframework.boot'
1313

1414
jar {
1515
baseName = 'classifier'
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
buildscript {
2+
repositories {
3+
mavenLocal()
4+
}
5+
dependencies {
6+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${project.bootVersion}")
7+
}
8+
}
9+
10+
apply plugin: 'spring-boot'
11+
12+
group = 'deprecated-plugin'
13+
version = '0.0.0'
14+
15+
repositories {
16+
mavenLocal()
17+
mavenCentral()
18+
}
19+
20+
springBoot {
21+
mainClass 'com.example.Main'
22+
}
23+
24+
dependencies {
25+
compile 'org.springframework.boot:spring-boot-starter'
26+
}

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/executable-jar/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repositories {
1212
mavenCentral()
1313
}
1414

15-
apply plugin: 'spring-boot'
15+
apply plugin: 'org.springframework.boot'
1616
apply plugin: 'java'
1717

1818
dependencies {

0 commit comments

Comments
 (0)