Skip to content

Commit 7c3d7d8

Browse files
committed
Merge branch '1.5.x'
2 parents f28fa3e + ef3395b commit 7c3d7d8

File tree

8 files changed

+43
-23
lines changed

8 files changed

+43
-23
lines changed

spring-boot-dependencies/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<elasticsearch.version>2.4.0</elasticsearch.version>
7575
<gemfire.version>8.2.0</gemfire.version>
7676
<glassfish-el.version>3.0.0</glassfish-el.version>
77-
<gradle.version>1.12</gradle.version>
77+
<gradle.version>2.9</gradle.version>
7878
<groovy.version>2.4.7</groovy.version>
7979
<gson.version>2.7</gson.version>
8080
<h2.version>1.4.193</h2.version>

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ diverge from the defaults.
3939
By default, Spring Boot {spring-boot-version} requires http://www.java.com[Java 7] and
4040
Spring Framework {spring-version} or above. You can use Spring Boot with Java 6 with some
4141
additional configuration. See <<howto.adoc#howto-use-java-6>> for more details. Explicit
42-
build support is provided for Maven (3.2+) and Gradle (1.12 or 2.x). Support for Gradle
43-
2.8 and earlier is deprecated. Gradle 3 is not supported.
42+
build support is provided for Maven (3.2+) and Gradle 2 (2.9 or later). Gradle 3 is not
43+
supported.
4444

4545
TIP: Although you can use Spring Boot with Java 6 or 7, we generally recommend Java 8 if
4646
at all possible.
@@ -205,9 +205,9 @@ scope.
205205

206206
[[getting-started-gradle-installation]]
207207
==== Gradle installation
208-
Spring Boot is compatible with Gradle 1.12 or 2.x but support for 2.8 and earlier is
209-
deprecated. Gradle 2.14.1 is recommended. Gradle 3 is not supported. If you don't already
210-
have Gradle installed you can follow the instructions at http://www.gradle.org/.
208+
Spring Boot is compatible with Gradle 2 (2.9 or later). Gradle 2.14.1 is recommended and
209+
Gradle 3 is not supported. If you don't already have Gradle installed you can follow the
210+
instructions at http://www.gradle.org/.
211211

212212
Spring Boot dependencies can be declared using the `org.springframework.boot` `group`.
213213
Typically your project will declare dependencies to one or more

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/BootRunResourceTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void createProject() throws IOException {
5050
public void resourcesDirectlyFromSource() {
5151
project.newBuild().forTasks("clean", "bootRun")
5252
.withArguments("-PbootVersion=" + BOOT_VERSION, "-PaddResources=true")
53-
.run();
53+
.setStandardOutput(System.out).run();
5454

5555
assertThat(this.output.toString()).contains("src/main/resources/test.txt");
5656
}
@@ -59,7 +59,7 @@ public void resourcesDirectlyFromSource() {
5959
public void resourcesFromBuildOutput() {
6060
project.newBuild().forTasks("clean", "bootRun")
6161
.withArguments("-PbootVersion=" + BOOT_VERSION, "-PaddResources=false")
62-
.run();
62+
.setStandardOutput(System.out).run();
6363
assertThat(this.output.toString()).contains("build/resources/main/test.txt");
6464
}
6565

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/ProjectCreator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class ProjectCreator {
3434
private String gradleVersion;
3535

3636
public ProjectCreator() {
37-
this("1.12");
37+
this("2.9");
3838
}
3939

4040
public ProjectCreator(String gradleVersion) {

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/spring-loaded-jvm-args/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99
}
1010
}
1111

12+
apply plugin: 'application'
1213
apply plugin: 'java'
1314
apply plugin: 'org.springframework.boot'
1415

spring-boot-parent/pom.xml

+17-2
Original file line numberDiff line numberDiff line change
@@ -187,19 +187,34 @@
187187
<artifactId>aether-util</artifactId>
188188
<version>${aether.version}</version>
189189
</dependency>
190+
<dependency>
191+
<groupId>org.gradle</groupId>
192+
<artifactId>gradle-base-services</artifactId>
193+
<version>${gradle.version}</version>
194+
</dependency>
195+
<dependency>
196+
<groupId>org.gradle</groupId>
197+
<artifactId>gradle-base-services-groovy</artifactId>
198+
<version>${gradle.version}</version>
199+
</dependency>
190200
<dependency>
191201
<groupId>org.gradle</groupId>
192202
<artifactId>gradle-core</artifactId>
193203
<version>${gradle.version}</version>
194204
</dependency>
195205
<dependency>
196206
<groupId>org.gradle</groupId>
197-
<artifactId>gradle-base-services</artifactId>
207+
<artifactId>gradle-language-java</artifactId>
198208
<version>${gradle.version}</version>
199209
</dependency>
200210
<dependency>
201211
<groupId>org.gradle</groupId>
202-
<artifactId>gradle-base-services-groovy</artifactId>
212+
<artifactId>gradle-language-jvm</artifactId>
213+
<version>${gradle.version}</version>
214+
</dependency>
215+
<dependency>
216+
<groupId>org.gradle</groupId>
217+
<artifactId>gradle-platform-jvm</artifactId>
203218
<version>${gradle.version}</version>
204219
</dependency>
205220
<dependency>

spring-boot-tools/spring-boot-gradle-plugin/pom.xml

+16-1
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,29 @@
3333
<artifactId>groovy</artifactId>
3434
<scope>provided</scope>
3535
</dependency>
36+
<dependency>
37+
<groupId>org.gradle</groupId>
38+
<artifactId>gradle-base-services</artifactId>
39+
<scope>provided</scope>
40+
</dependency>
3641
<dependency>
3742
<groupId>org.gradle</groupId>
3843
<artifactId>gradle-core</artifactId>
3944
<scope>provided</scope>
4045
</dependency>
4146
<dependency>
4247
<groupId>org.gradle</groupId>
43-
<artifactId>gradle-base-services</artifactId>
48+
<artifactId>gradle-language-java</artifactId>
49+
<scope>provided</scope>
50+
</dependency>
51+
<dependency>
52+
<groupId>org.gradle</groupId>
53+
<artifactId>gradle-language-jvm</artifactId>
54+
<scope>provided</scope>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.gradle</groupId>
58+
<artifactId>gradle-platform-jvm</artifactId>
4459
<scope>provided</scope>
4560
</dependency>
4661
<dependency>

spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/SpringBootPlugin.java

-11
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
import org.gradle.api.Task;
2323
import org.gradle.api.plugins.JavaPlugin;
2424
import org.gradle.api.tasks.compile.JavaCompile;
25-
import org.gradle.util.GradleVersion;
26-
import org.slf4j.Logger;
27-
import org.slf4j.LoggerFactory;
2825

2926
import org.springframework.boot.gradle.SpringBootPluginExtension;
3027
import org.springframework.boot.gradle.agent.AgentPluginFeatures;
@@ -41,15 +38,8 @@
4138
*/
4239
public class SpringBootPlugin implements Plugin<Project> {
4340

44-
private static final Logger logger = LoggerFactory.getLogger(SpringBootPlugin.class);
45-
4641
@Override
4742
public void apply(Project project) {
48-
if (GradleVersion.current().compareTo(GradleVersion.version("2.9")) < 0) {
49-
logger.warn("Spring Boot plugin's support for Gradle "
50-
+ GradleVersion.current().getVersion()
51-
+ " is deprecated. Please upgrade to Gradle 2.9 or later.");
52-
}
5343
project.getExtensions().create("springBoot", SpringBootPluginExtension.class,
5444
project);
5545
project.getPlugins().apply(JavaPlugin.class);
@@ -67,7 +57,6 @@ public void execute(final JavaCompile compile) {
6757
compile.doFirst(new Action<Task>() {
6858

6959
@Override
70-
@SuppressWarnings("deprecation")
7160
public void execute(Task t) {
7261
if (compile.getOptions().getEncoding() == null) {
7362
compile.getOptions().setEncoding("UTF-8");

0 commit comments

Comments
 (0)