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
999fa123
Commit
999fa123
authored
Oct 19, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate support for Gradle 2.7 and earlier
parent
943a054b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
getting-started.adoc
spring-boot-docs/src/main/asciidoc/getting-started.adoc
+5
-5
SpringBootPlugin.java
.../springframework/boot/gradle/plugin/SpringBootPlugin.java
+10
-0
No files found.
spring-boot-docs/src/main/asciidoc/getting-started.adoc
View file @
999fa123
...
@@ -39,8 +39,8 @@ diverge from the defaults.
...
@@ -39,8 +39,8 @@ diverge from the defaults.
By default, Spring Boot {spring-boot-version} requires http://www.java.com[Java 7] and
By default, Spring Boot {spring-boot-version} requires http://www.java.com[Java 7] and
Spring Framework {spring-version} or above. You can use Spring Boot with Java 6 with some
Spring Framework {spring-version} or above. You can use Spring Boot with Java 6 with some
additional configuration. See <<howto.adoc#howto-use-java-6>> for more details. Explicit
additional configuration. See <<howto.adoc#howto-use-java-6>> for more details. Explicit
build support is provided for Maven (3.2+) and Gradle (1.12 or 2.x).
Gradle 3 is not
build support is provided for Maven (3.2+) and Gradle (1.12 or 2.x).
Support for Gradle
supported.
2.7 and earlier is deprecated. Gradle 3 is not
supported.
TIP: Although you can use Spring Boot with Java 6 or 7, we generally recommend Java 8 if
TIP: Although you can use Spring Boot with Java 6 or 7, we generally recommend Java 8 if
at all possible.
at all possible.
...
@@ -205,9 +205,9 @@ scope.
...
@@ -205,9 +205,9 @@ scope.
[[getting-started-gradle-installation]]
[[getting-started-gradle-installation]]
==== Gradle installation
==== Gradle installation
Spring Boot is compatible with Gradle 1.12 or 2.x
. 2.14.1 is recommended. Gradle 3 is not
Spring Boot is compatible with Gradle 1.12 or 2.x
but support for 2.7 and earlier is
supported. If you don't already have Gradle installed you can follow the instructions at
deprecated. Gradle 2.14.1 is recommended. Gradle 3 is not supported. If you don't already
http://www.gradle.org/.
h
ave Gradle installed you can follow the instructions at h
ttp://www.gradle.org/.
Spring Boot dependencies can be declared using the `org.springframework.boot` `group`.
Spring Boot dependencies can be declared using the `org.springframework.boot` `group`.
Typically your project will declare dependencies to one or more
Typically your project will declare dependencies to one or more
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/SpringBootPlugin.java
View file @
999fa123
...
@@ -22,6 +22,9 @@ import org.gradle.api.Project;
...
@@ -22,6 +22,9 @@ import org.gradle.api.Project;
import
org.gradle.api.Task
;
import
org.gradle.api.Task
;
import
org.gradle.api.plugins.JavaPlugin
;
import
org.gradle.api.plugins.JavaPlugin
;
import
org.gradle.api.tasks.compile.JavaCompile
;
import
org.gradle.api.tasks.compile.JavaCompile
;
import
org.gradle.util.GradleVersion
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.gradle.SpringBootPluginExtension
;
import
org.springframework.boot.gradle.SpringBootPluginExtension
;
import
org.springframework.boot.gradle.agent.AgentPluginFeatures
;
import
org.springframework.boot.gradle.agent.AgentPluginFeatures
;
...
@@ -38,8 +41,15 @@ import org.springframework.boot.gradle.run.RunPluginFeatures;
...
@@ -38,8 +41,15 @@ import org.springframework.boot.gradle.run.RunPluginFeatures;
*/
*/
public
class
SpringBootPlugin
implements
Plugin
<
Project
>
{
public
class
SpringBootPlugin
implements
Plugin
<
Project
>
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SpringBootPlugin
.
class
);
@Override
@Override
public
void
apply
(
Project
project
)
{
public
void
apply
(
Project
project
)
{
if
(
GradleVersion
.
current
().
compareTo
(
GradleVersion
.
version
(
"2.8"
))
<
0
)
{
logger
.
warn
(
"Spring Boot plugin's support for Gradle "
+
GradleVersion
.
current
().
getVersion
()
+
" is deprecated. Please upgrade to Gradle 2.8 or later."
);
}
project
.
getExtensions
().
create
(
"springBoot"
,
SpringBootPluginExtension
.
class
,
project
.
getExtensions
().
create
(
"springBoot"
,
SpringBootPluginExtension
.
class
,
project
);
project
);
project
.
getPlugins
().
apply
(
JavaPlugin
.
class
);
project
.
getPlugins
().
apply
(
JavaPlugin
.
class
);
...
...
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