Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
f35b91a1
Commit
f35b91a1
authored
May 03, 2019
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise minimum supported version of Gradle to 4.10 and encourage use of 5.x
Closes gh-16681
parent
1f897ad9
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
47 deletions
+20
-47
build-tool-plugins.adoc
...pring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
+2
-1
getting-started.adoc
...t/spring-boot-docs/src/main/asciidoc/getting-started.adoc
+4
-3
gradle-wrapper.jar
...ring-boot-gradle-plugin/gradle/wrapper/gradle-wrapper.jar
+0
-0
gradle-wrapper.properties
...ot-gradle-plugin/gradle/wrapper/gradle-wrapper.properties
+1
-1
getting-started.adoc
...boot-gradle-plugin/src/main/asciidoc/getting-started.adoc
+8
-24
index.adoc
...ls/spring-boot-gradle-plugin/src/main/asciidoc/index.adoc
+2
-2
apply-plugin-milestone.gradle
...main/gradle/getting-started/apply-plugin-milestone.gradle
+0
-11
BootZipCopyAction.java
...amework/boot/gradle/tasks/bundling/BootZipCopyAction.java
+1
-2
GradleCompatibilitySuite.java
...framework/boot/gradle/junit/GradleCompatibilitySuite.java
+2
-3
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
View file @
f35b91a1
...
@@ -169,7 +169,8 @@ Advanced configuration options and examples are available in the
...
@@ -169,7 +169,8 @@ Advanced configuration options and examples are available in the
== Spring Boot Gradle Plugin
== Spring Boot Gradle Plugin
The Spring Boot Gradle Plugin provides Spring Boot support in Gradle, letting you package
The Spring Boot Gradle Plugin provides Spring Boot support in Gradle, letting you package
executable jar or war archives, run Spring Boot applications, and use the dependency
executable jar or war archives, run Spring Boot applications, and use the dependency
management provided by `spring-boot-dependencies`. It requires Gradle 4.4 or later. Please
management provided by `spring-boot-dependencies`. It requires Gradle 5.x (4.10 is also
supported but this support is deprecated and will be removed in a future release). Please
refer to the plugin's documentation to learn more:
refer to the plugin's documentation to learn more:
* Reference ({spring-boot-gradle-plugin}/reference/html[HTML] and
* Reference ({spring-boot-gradle-plugin}/reference/html[HTML] and
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc
View file @
f35b91a1
...
@@ -52,7 +52,7 @@ Explicit build support is provided for the following build tools:
...
@@ -52,7 +52,7 @@ Explicit build support is provided for the following build tools:
|3.3+
|3.3+
|Gradle
|Gradle
|
4.4+
|
5.x (4.10 is also supported but in a deprecated form)
|===
|===
...
@@ -201,8 +201,9 @@ scope.
...
@@ -201,8 +201,9 @@ scope.
[[getting-started-gradle-installation]]
[[getting-started-gradle-installation]]
==== Gradle Installation
==== Gradle Installation
Spring Boot is compatible with Gradle 4.4 and later. If you do not already have Gradle
Spring Boot is compatible with 5.x. 4.10 is also supported but this support is deprecated
installed, you can follow the instructions at https://gradle.org.
and will be removed in a future release. If you do not already have Gradle installed, you
can follow the instructions at https://gradle.org.
Spring Boot dependencies can be declared by using the `org.springframework.boot` `group`.
Spring Boot dependencies can be declared by using the `org.springframework.boot` `group`.
Typically, your project declares dependencies to one or more
Typically, your project declares dependencies to one or more
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/gradle/wrapper/gradle-wrapper.jar
View file @
f35b91a1
No preview for this file type
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/gradle/wrapper/gradle-wrapper.properties
View file @
f35b91a1
distributionBase
=
GRADLE_USER_HOME
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionPath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.10.3-bin.zip
zipStoreBase
=
GRADLE_USER_HOME
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.4.1-bin.zip
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc/getting-started.adoc
View file @
f35b91a1
...
@@ -19,18 +19,10 @@ include::../gradle/getting-started/apply-plugin-release.gradle.kts[]
...
@@ -19,18 +19,10 @@ include::../gradle/getting-started/apply-plugin-release.gradle.kts[]
----
----
endif::[]
endif::[]
ifeval::["{version-type}" == "MILESTONE"]
ifeval::["{version-type}" == "MILESTONE"]
The plugin is published to the Spring milestones repository. For Gradle versions less
The plugin is published to the Spring milestones repository. Gradle can be configured to
than 4.10, this means that you must apply the plugin imperatively:
use the milestones repository and the plugin can then be applied using the `plugins`
block. To configure Gradle to use the milestones repository, add the following to your
[source,groovy,indent=0,subs="verbatim,attributes"]
`settings.gradle` (Groovy) or `settings.gradle.kts` (Kotlin):
----
include::../gradle/getting-started/apply-plugin-milestone.gradle[]
----
For Gradle 4.10 and above, Gradle can be configured to use the milestones repository
and it can be applied using the `plugins` block. To configure Gradle to use the milestones
repository, add the following to your `settings.gradle` (Groovy) or `settings.gradle.kts`
(Kotlin):
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]
.Groovy
.Groovy
...
@@ -59,18 +51,10 @@ include::../gradle/getting-started/apply-plugin-release.gradle.kts[]
...
@@ -59,18 +51,10 @@ include::../gradle/getting-started/apply-plugin-release.gradle.kts[]
----
----
endif::[]
endif::[]
ifeval::["{version-type}" == "SNAPSHOT"]
ifeval::["{version-type}" == "SNAPSHOT"]
The plugin is published to the Spring snapshots repository. For Gradle versions less
The plugin is published to the Spring snapshots repository. Gradle can be configured to
than 4.10, this means that you must apply the plugin imperatively:
use the snapshots repository and the plugin can then be applied using the `plugins`
block. To configure Gradle to use the snapshots repository, add the following to your
[source,groovy,indent=0,subs="verbatim,attributes"]
`settings.gradle` (Groovy) or `settings.gradle.kts` (Kotlin):
----
include::../gradle/getting-started/apply-plugin-milestone.gradle[]
----
For Gradle 4.10 and above, Gradle can be configured to use the snapshots repository
and it can be applied using the `plugins` block. To configure Gradle to use the snapshots
repository, add the following to your `settings.gradle` (Groovy) or `settings.gradle.kts`
(Kotlin):
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]
.Groovy
.Groovy
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc/index.adoc
View file @
f35b91a1
...
@@ -39,8 +39,8 @@ Andy Wilkinson
...
@@ -39,8 +39,8 @@ Andy Wilkinson
The Spring Boot Gradle Plugin provides Spring Boot support in https://gradle.org[Gradle],
The Spring Boot Gradle Plugin provides Spring Boot support in https://gradle.org[Gradle],
allowing you to package executable jar or war archives, run Spring Boot applications, and
allowing you to package executable jar or war archives, run Spring Boot applications, and
use the dependency management provided by `spring-boot-dependencies`. Spring Boot's
use the dependency management provided by `spring-boot-dependencies`. Spring Boot's
Gradle plugin requires Gradle
4.4 or later. If you choose to use the newer Kotlin DSL,
Gradle plugin requires Gradle
5.x (4.10 is also supported but this support is deprecated
it requires Gradle 4.10 or later
.
and will be removed in a future release)
.
In addition to this user guide, {api-documentation}[API documentation] is also available.
In addition to this user guide, {api-documentation}[API documentation] is also available.
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/gradle/getting-started/apply-plugin-milestone.gradle
deleted
100644 → 0
View file @
1f897ad9
buildscript
{
repositories
{
maven
{
url
'https://repo.spring.io/libs-milestone'
}
}
dependencies
{
classpath
'org.springframework.boot:spring-boot-gradle-plugin:{version}'
}
}
apply
plugin:
'org.springframework.boot'
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootZipCopyAction.java
View file @
f35b91a1
/*
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -119,7 +119,6 @@ class BootZipCopyAction implements CopyAction {
...
@@ -119,7 +119,6 @@ class BootZipCopyAction implements CopyAction {
return
()
->
true
;
return
()
->
true
;
}
}
@SuppressWarnings
(
"unchecked"
)
private
Spec
<
FileTreeElement
>
createExclusionSpec
(
private
Spec
<
FileTreeElement
>
createExclusionSpec
(
Spec
<
FileTreeElement
>
loaderEntries
)
{
Spec
<
FileTreeElement
>
loaderEntries
)
{
return
Specs
.
union
(
loaderEntries
,
this
.
exclusions
);
return
Specs
.
union
(
loaderEntries
,
this
.
exclusions
);
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/junit/GradleCompatibilitySuite.java
View file @
f35b91a1
...
@@ -38,9 +38,8 @@ import org.springframework.boot.gradle.testkit.GradleBuild;
...
@@ -38,9 +38,8 @@ import org.springframework.boot.gradle.testkit.GradleBuild;
*/
*/
public
final
class
GradleCompatibilitySuite
extends
Suite
{
public
final
class
GradleCompatibilitySuite
extends
Suite
{
private
static
final
List
<
String
>
GRADLE_VERSIONS
=
Arrays
.
asList
(
"default"
,
"4.5.1"
,
private
static
final
List
<
String
>
GRADLE_VERSIONS
=
Arrays
.
asList
(
"default"
,
"5.0"
,
"4.6"
,
"4.7"
,
"4.8.1"
,
"4.9"
,
"4.10.3"
,
"5.0"
,
"5.1.1"
,
"5.2.1"
,
"5.3.1"
,
"5.1.1"
,
"5.2.1"
,
"5.3.1"
,
"5.4.1"
);
"5.4.1"
);
public
GradleCompatibilitySuite
(
Class
<?>
clazz
)
throws
InitializationError
{
public
GradleCompatibilitySuite
(
Class
<?>
clazz
)
throws
InitializationError
{
super
(
clazz
,
createRunners
(
clazz
));
super
(
clazz
,
createRunners
(
clazz
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment