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
fe10ea73
Commit
fe10ea73
authored
Oct 05, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
cf28663c
ad3e5c04
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
162 additions
and
33 deletions
+162
-33
build-tool-plugins.adoc
spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
+1
-1
deployment.adoc
spring-boot-docs/src/main/asciidoc/deployment.adoc
+1
-1
getting-started.adoc
spring-boot-docs/src/main/asciidoc/getting-started.adoc
+1
-1
using-spring-boot.adoc
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+1
-1
DeprecatedPluginTests.java
...rg/springframework/boot/gradle/DeprecatedPluginTests.java
+50
-0
build.gradle
...-tests/src/test/resources/boot-run-resources/build.gradle
+1
-1
classifier-extension.gradle
...adle-tests/src/test/resources/classifier-extension.gradle
+1
-1
classifier.gradle
...ng-boot-gradle-tests/src/test/resources/classifier.gradle
+1
-1
deprecated-plugin.gradle
...-gradle-tests/src/test/resources/deprecated-plugin.gradle
+26
-0
build.gradle
...adle-tests/src/test/resources/executable-jar/build.gradle
+1
-1
flatdir.gradle
...pring-boot-gradle-tests/src/test/resources/flatdir.gradle
+1
-1
install-app.gradle
...g-boot-gradle-tests/src/test/resources/install-app.gradle
+1
-1
installer.gradle
...ing-boot-gradle-tests/src/test/resources/installer.gradle
+2
-2
main-class.gradle
...ng-boot-gradle-tests/src/test/resources/main-class.gradle
+1
-1
mixed-version-repackaging.gradle
...tests/src/test/resources/mixed-version-repackaging.gradle
+1
-1
build.gradle
...sources/multi-project-common-file-dependency/build.gradle
+1
-1
build.gradle
...ces/multi-project-runtime-project-dependency/build.gradle
+1
-1
build.gradle
...ces/multi-project-transitive-file-dependency/build.gradle
+1
-1
nojar.gradle
.../spring-boot-gradle-tests/src/test/resources/nojar.gradle
+1
-1
repackage.gradle
...ing-boot-gradle-tests/src/test/resources/repackage.gradle
+1
-1
build.gradle
...ts/src/test/resources/spring-loaded-jvm-args/build.gradle
+1
-1
build.gradle
.../src/test/resources/spring-loaded-old-gradle/build.gradle
+1
-1
starter-dependencies.gradle
...adle-tests/src/test/resources/starter-dependencies.gradle
+1
-1
war-packaging.gradle
...boot-gradle-tests/src/test/resources/war-packaging.gradle
+2
-2
build.gradle
spring-boot-samples/spring-boot-sample-actuator/build.gradle
+1
-1
pom.xml
spring-boot-samples/spring-boot-sample-data-neo4j/pom.xml
+10
-1
build.gradle
spring-boot-samples/spring-boot-sample-logback/build.gradle
+1
-1
build.gradle
spring-boot-samples/spring-boot-sample-profile/build.gradle
+1
-1
build.gradle
spring-boot-samples/spring-boot-sample-simple/build.gradle
+1
-1
build.gradle
...g-boot-samples/spring-boot-sample-web-static/build.gradle
+1
-1
build.gradle
spring-boot-samples/spring-boot-sample-web-ui/build.gradle
+1
-1
SpringBootPluginExtension.java
...pringframework/boot/gradle/SpringBootPluginExtension.java
+1
-1
DeprecatedSpringBootPlugin.java
...mework/boot/gradle/plugin/DeprecatedSpringBootPlugin.java
+43
-0
org.springframework.boot.properties
...TA-INF/gradle-plugins/org.springframework.boot.properties
+1
-0
spring-boot.properties
.../resources/META-INF/gradle-plugins/spring-boot.properties
+1
-1
No files found.
spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
View file @
fe10ea73
...
...
@@ -182,7 +182,7 @@ the `spring-boot` plugin:
classpath
(
"org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}"
)
}
}
apply
plugin
:
'
spring-
boot'
apply
plugin
:
'
org.springframework.
boot'
----
If
you
are
using
a
milestone
or
snapshot
release
you
will
also
need
to
add
appropriate
...
...
spring-boot-docs/src/main/asciidoc/deployment.adoc
View file @
fe10ea73
...
...
@@ -387,7 +387,7 @@ With Gradle, the equivalent configuration would be:
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
----
apply plugin: '
spring-
boot'
apply plugin: '
org.springframework.
boot'
springBoot {
executable = true
...
...
spring-boot-docs/src/main/asciidoc/getting-started.adoc
View file @
fe10ea73
...
...
@@ -240,7 +240,7 @@ endif::release[]
}
apply plugin: 'java'
apply plugin: '
spring-
boot'
apply plugin: '
org.springframework.
boot'
jar {
baseName = 'myproject'
...
...
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
View file @
fe10ea73
...
...
@@ -257,7 +257,7 @@ endif::[]
}
apply plugin: 'java'
apply plugin: '
spring-
boot'
apply plugin: '
org.springframework.
boot'
repositories {
ifeval::["{spring-boot-repo}" != "release"]
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/DeprecatedPluginTests.java
0 → 100644
View file @
fe10ea73
/*
* Copyright 2012-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
gradle
;
import
org.gradle.tooling.ProjectConnection
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.springframework.boot.test.rule.OutputCapture
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
/**
* Tests for using the old, deprecated plugin ID.
*
* @author Andy Wilkinson
*/
public
class
DeprecatedPluginTests
{
private
ProjectConnection
project
;
private
static
final
String
BOOT_VERSION
=
Versions
.
getBootVersion
();
@Rule
public
OutputCapture
output
=
new
OutputCapture
();
@Test
public
void
deprecatedIdWorksAndLogsAWarning
()
throws
Exception
{
this
.
project
=
new
ProjectCreator
().
createProject
(
"deprecated-plugin"
);
this
.
project
.
newBuild
().
forTasks
(
"build"
)
.
withArguments
(
"-PbootVersion="
+
BOOT_VERSION
,
"--stacktrace"
).
run
();
assertThat
(
this
.
output
.
toString
())
.
contains
(
"The plugin id 'spring-boot' is deprecated"
);
}
}
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/boot-run-resources/build.gradle
View file @
fe10ea73
...
...
@@ -8,7 +8,7 @@ buildscript {
}
apply
plugin:
'java'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
repositories
{
mavenLocal
()
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/classifier-extension.gradle
View file @
fe10ea73
...
...
@@ -9,7 +9,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'maven'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
jar
{
baseName
=
'classifier-extension'
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/classifier.gradle
View file @
fe10ea73
...
...
@@ -9,7 +9,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'maven'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
jar
{
baseName
=
'classifier'
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/deprecated-plugin.gradle
0 → 100644
View file @
fe10ea73
buildscript
{
repositories
{
mavenLocal
()
}
dependencies
{
classpath
(
"org.springframework.boot:spring-boot-gradle-plugin:${project.bootVersion}"
)
}
}
apply
plugin:
'spring-boot'
group
=
'deprecated-plugin'
version
=
'0.0.0'
repositories
{
mavenLocal
()
mavenCentral
()
}
springBoot
{
mainClass
'com.example.Main'
}
dependencies
{
compile
'org.springframework.boot:spring-boot-starter'
}
\ No newline at end of file
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/executable-jar/build.gradle
View file @
fe10ea73
...
...
@@ -12,7 +12,7 @@ repositories {
mavenCentral
()
}
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
apply
plugin:
'java'
dependencies
{
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/flatdir.gradle
View file @
fe10ea73
...
...
@@ -7,7 +7,7 @@ buildscript {
}
}
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
group
=
'flatdir'
version
=
'0.0.0'
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/install-app.gradle
View file @
fe10ea73
...
...
@@ -9,7 +9,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'maven'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
apply
plugin:
'application'
group
=
'installer'
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/installer.gradle
View file @
fe10ea73
...
...
@@ -9,7 +9,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'maven'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
group
=
'installer'
version
=
'0.0.0'
...
...
@@ -17,7 +17,7 @@ version = '0.0.0'
install
{
repositories
.
mavenInstaller
{
pom
.
project
{
parent
{
parent
{
groupId
'org.springframework.boot'
artifactId
'spring-boot-starter-parent'
version
"${project.bootVersion}"
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/main-class.gradle
View file @
fe10ea73
...
...
@@ -9,7 +9,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'maven'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
group
=
'installer'
version
=
'0.0.0'
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/mixed-version-repackaging.gradle
View file @
fe10ea73
...
...
@@ -13,7 +13,7 @@ repositories {
mavenCentral
()
}
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
apply
plugin:
'java'
dependencies
{
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/multi-project-common-file-dependency/build.gradle
View file @
fe10ea73
...
...
@@ -15,7 +15,7 @@ subprojects {
}
}
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
repositories
{
mavenLocal
()
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/multi-project-runtime-project-dependency/build.gradle
View file @
fe10ea73
...
...
@@ -8,7 +8,7 @@ buildscript {
}
project
(
':projectA'
)
{
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
repositories
{
mavenLocal
()
}
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/multi-project-transitive-file-dependency/build.gradle
View file @
fe10ea73
...
...
@@ -8,7 +8,7 @@ buildscript {
}
project
(
'main'
)
{
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
apply
plugin:
'java'
repositories
{
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/nojar.gradle
View file @
fe10ea73
...
...
@@ -7,7 +7,7 @@ buildscript {
}
}
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
group
=
'nojar'
version
=
'0.0.0'
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/repackage.gradle
View file @
fe10ea73
...
...
@@ -12,7 +12,7 @@ repositories {
mavenCentral
()
}
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
apply
plugin:
'java'
dependencies
{
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/spring-loaded-jvm-args/build.gradle
View file @
fe10ea73
...
...
@@ -10,7 +10,7 @@ buildscript {
}
apply
plugin:
'java'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
repositories
{
mavenLocal
()
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/spring-loaded-old-gradle/build.gradle
View file @
fe10ea73
...
...
@@ -10,7 +10,7 @@ buildscript {
}
apply
plugin:
'java'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
repositories
{
mavenLocal
()
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/starter-dependencies.gradle
View file @
fe10ea73
...
...
@@ -22,7 +22,7 @@ dependencies {
springBootStarter
"org.springframework.boot:${project.starter}:${project.bootVersion}"
}
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
task
checkCommonsLogging
{
doFirst
{
...
...
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/resources/war-packaging.gradle
View file @
fe10ea73
...
...
@@ -14,10 +14,10 @@ repositories {
mavenCentral
()
}
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
apply
plugin:
'war'
dependencies
{
dependencies
{
compile
'org.springframework.boot:spring-boot-starter-freemarker'
providedRuntime
"org.springframework.boot:spring-boot-starter-$servletContainer"
}
...
...
spring-boot-samples/spring-boot-sample-actuator/build.gradle
View file @
fe10ea73
...
...
@@ -18,7 +18,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'eclipse'
apply
plugin:
'idea'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
jar
{
baseName
=
'spring-boot-sample-actuator'
...
...
spring-boot-samples/spring-boot-sample-data-neo4j/pom.xml
View file @
fe10ea73
...
...
@@ -23,7 +23,16 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-neo4j
</artifactId>
</dependency>
<!-- <dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-embedded-driver</artifactId>
<version>${neo4j-ogm.version}</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-bolt-driver</artifactId>
<version>${neo4j-ogm.version}</version>
</dependency> -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
...
spring-boot-samples/spring-boot-sample-logback/build.gradle
View file @
fe10ea73
...
...
@@ -18,7 +18,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'eclipse'
apply
plugin:
'idea'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
jar
{
baseName
=
'spring-boot-sample-simple'
...
...
spring-boot-samples/spring-boot-sample-profile/build.gradle
View file @
fe10ea73
...
...
@@ -18,7 +18,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'eclipse'
apply
plugin:
'idea'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
jar
{
baseName
=
'spring-boot-sample-profile'
...
...
spring-boot-samples/spring-boot-sample-simple/build.gradle
View file @
fe10ea73
...
...
@@ -18,7 +18,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'eclipse'
apply
plugin:
'idea'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
jar
{
baseName
=
'spring-boot-sample-simple'
...
...
spring-boot-samples/spring-boot-sample-web-static/build.gradle
View file @
fe10ea73
...
...
@@ -19,7 +19,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'eclipse-wtp'
apply
plugin:
'idea'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
apply
plugin:
'war'
war
{
...
...
spring-boot-samples/spring-boot-sample-web-ui/build.gradle
View file @
fe10ea73
...
...
@@ -21,7 +21,7 @@ buildscript {
apply
plugin:
'java'
apply
plugin:
'eclipse'
apply
plugin:
'idea'
apply
plugin:
'
spring-
boot'
apply
plugin:
'
org.springframework.
boot'
springBoot
{
classifier
=
'exec'
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/SpringBootPluginExtension.java
View file @
fe10ea73
...
...
@@ -34,7 +34,7 @@ import org.springframework.boot.loader.tools.Layouts;
* two of them. E.g.
*
* <pre>
* apply plugin:
"spring-boot"
* apply plugin:
'org.springframework.boot'
* springBoot {
* mainClass = 'org.demo.Application'
* layout = 'ZIP'
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/DeprecatedSpringBootPlugin.java
0 → 100644
View file @
fe10ea73
/*
* Copyright 2012-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
gradle
.
plugin
;
import
org.gradle.api.Project
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
/**
* {@link SpringBootPlugin} subclass that outputs a deprecation warning to direct people
* to use the new Gradle Plugin Portal-compatible ID {@code org.springframework.boot}.
*
* @author Andy Wilkinson
* @deprecated since 1.4.2 in favor of {@link SpringBootPlugin}
*/
@Deprecated
public
class
DeprecatedSpringBootPlugin
extends
SpringBootPlugin
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DeprecatedSpringBootPlugin
.
class
);
@Override
public
void
apply
(
Project
project
)
{
logger
.
warn
(
"The plugin id 'spring-boot' is deprecated. Please use "
+
"'org.springframework.boot' instead."
);
super
.
apply
(
project
);
}
}
spring-boot-tools/spring-boot-gradle-plugin/src/main/resources/META-INF/gradle-plugins/org.springframework.boot.properties
0 → 100644
View file @
fe10ea73
implementation-class
=
org.springframework.boot.gradle.plugin.SpringBootPlugin
spring-boot-tools/spring-boot-gradle-plugin/src/main/resources/META-INF/gradle-plugins/spring-boot.properties
View file @
fe10ea73
implementation-class
=
org.springframework.boot.gradle.plugin.SpringBootPlugin
implementation-class
=
org.springframework.boot.gradle.plugin.
Deprecated
SpringBootPlugin
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