Skip to content

Commit b35c162

Browse files
committed
Raise the minimum supported version of Gradle to 3.4
Closes spring-projectsgh-7922
1 parent b1f679b commit b35c162

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

spring-boot-dependencies/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<freemarker.version>2.3.25-incubating</freemarker.version>
7979
<elasticsearch.version>2.4.4</elasticsearch.version>
8080
<glassfish-el.version>3.0.0</glassfish-el.version>
81-
<gradle.version>2.9</gradle.version>
81+
<gradle.version>3.4</gradle.version>
8282
<groovy.version>2.4.9</groovy.version>
8383
<gson.version>2.8.0</gson.version>
8484
<h2.version>1.4.193</h2.version>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ diverge from the defaults.
3838
== System Requirements
3939
Spring Boot {spring-boot-version} requires http://www.java.com[Java 8] and Spring
4040
Framework {spring-version} or above. Explicit build support is provided for Maven
41-
(3.2+), and Gradle 2 (2.9 or later) and 3.
41+
(3.2+), and Gradle 3 (3.4 or later).
4242

4343

4444
[[getting-started-system-requirements-servlet-containers]]
@@ -184,8 +184,8 @@ scope.
184184

185185
[[getting-started-gradle-installation]]
186186
==== Gradle installation
187-
Spring Boot is compatible with Gradle 2 (2.9 or later) and Gradle 3. If you don't already
188-
have Gradle installed you can follow the instructions at http://www.gradle.org/.
187+
Spring Boot is compatible with Gradle 3 (3.4 or later). If you don't already have Gradle
188+
installed you can follow the instructions at http://www.gradle.org/.
189189

190190
Spring Boot dependencies can be declared using the `org.springframework.boot` `group`.
191191
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/InstallTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,9 @@ public void cleanInstall() throws Exception {
3838
}
3939

4040
@Test
41-
public void cleanInstallApp() throws Exception {
41+
public void cleanInstallDist() throws Exception {
4242
this.project = new ProjectCreator().createProject("install-app");
43-
// "install" from the application plugin was renamed "installApp" in Gradle
44-
// 1.0
45-
this.project.newBuild().forTasks("installApp")
43+
this.project.newBuild().forTasks("installDist")
4644
.withArguments("-PbootVersion=" + BOOT_VERSION, "--stacktrace").run();
4745
}
4846

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

Lines changed: 1 addition & 1 deletion
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("2.9");
37+
this("3.4");
3838
}
3939

4040
public ProjectCreator(String gradleVersion) {

spring-boot-parent/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@
234234
<artifactId>gradle-plugins</artifactId>
235235
<version>${gradle.version}</version>
236236
</dependency>
237+
<dependency>
238+
<groupId>org.gradle</groupId>
239+
<artifactId>gradle-process-services</artifactId>
240+
<version>${gradle.version}</version>
241+
</dependency>
237242
<dependency>
238243
<groupId>org.jetbrains.kotlin</groupId>
239244
<artifactId>kotlin-runtime</artifactId>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
<artifactId>gradle-plugins</artifactId>
6464
<scope>provided</scope>
6565
</dependency>
66+
<dependency>
67+
<groupId>org.gradle</groupId>
68+
<artifactId>gradle-process-services</artifactId>
69+
<scope>provided</scope>
70+
</dependency>
6671
</dependencies>
6772
<repositories>
6873
<repository>

0 commit comments

Comments
 (0)