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
8494635a
Commit
8494635a
authored
Dec 01, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
85de72c0
b798b5a4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
38 deletions
+42
-38
build-tool-plugins.adoc
spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
+15
-14
deployment.adoc
spring-boot-docs/src/main/asciidoc/deployment.adoc
+0
-2
getting-started.adoc
spring-boot-docs/src/main/asciidoc/getting-started.adoc
+13
-7
using-spring-boot.adoc
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+14
-15
No files found.
spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
View file @
8494635a
...
...
@@ -172,32 +172,33 @@ dependency management provided by `spring-boot-dependencies`.
[[
build
-
tool
-
plugins
-
including
-
the
-
gradle
-
plugin
]]
===
Including
the
plugin
To
use
the
Spring
Boot
Gradle
Plugin
simply
include
a
`
buildscript
`
dependency
and
apply
the
`
spring
-
boot
`
plugin
:
ifeval
::[
"{spring-boot-repo}"
==
"release"
]
To
use
the
Spring
Boot
Gradle
Plugin
configure
it
using
the
`
plugins
`
block
:
[
source
,
groovy
,
indent
=
0
,
subs
=
"verbatim,attributes"
]
----
buildscript
{
dependencies
{
classpath
(
"org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}"
)
}
plugins
{
id
'org.springframework.boot'
version
'{spring-boot-version}'
}
apply
plugin
:
'org.springframework.boot'
----
If
you
are
using
a
milestone
or
snapshot
release
you
will
also
need
to
add
appropriate
`
repositories
`
reference
:
endif
::[]
ifeval
::[
"{spring-boot-repo}"
!= "release"]
To
use
the
Spring
Boot
Gradle
Plugin
simply
include
a
`
buildscript
`
dependency
and
apply
the
`
spring
-
boot
`
plugin
:
[
source
,
groovy
,
indent
=
0
,
subs
=
"verbatim,attributes"
]
----
buildscript
{
repositories
{
maven
.
url
"http://repo.spring.io/snapshot"
maven
.
url
"http://repo.spring.io/milestone"
maven
{
url
'http://repo.spring.io/snapshot'
}
maven
{
url
'http://repo.spring.io/milestone'
}
}
dependencies
{
classpath
'org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}''
}
//
...
}
apply plugin: '
org
.
springframework
.
boot
'
----
endif::[]
...
...
spring-boot-docs/src/main/asciidoc/deployment.adoc
View file @
8494635a
...
...
@@ -387,8 +387,6 @@ With Gradle, the equivalent configuration would be:
[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
----
apply plugin: 'org.springframework.boot'
springBoot {
executable = true
}
...
...
spring-boot-docs/src/main/asciidoc/getting-started.adoc
View file @
8494635a
...
...
@@ -226,22 +226,28 @@ Here is a typical `build.gradle` file:
[source,groovy,indent=0,subs="verbatim,attributes"]
----
ifeval::["{spring-boot-repo}" == "release"]
plugins {
id 'org.springframework.boot' version '{spring-boot-version}'
id 'java'
}
endif::[]
ifeval::["{spring-boot-repo}" != "release"]
buildscript {
repositories {
jcenter()
ifndef::release[]
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
endif::release[]
maven { url 'http://repo.spring.io/snapshot' }
maven { url 'http://repo.spring.io/milestone' }
}
dependencies {
classpath
("org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}")
classpath
'org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}'
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
endif::[]
jar {
baseName = 'myproject'
version = '0.0.1-SNAPSHOT'
...
...
@@ -249,10 +255,10 @@ endif::release[]
repositories {
jcenter()
if
ndef::release[
]
if
eval::["{spring-boot-repo}" != "release"
]
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
endif::
release
[]
endif::[]
}
dependencies {
...
...
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
View file @
8494635a
...
...
@@ -214,8 +214,6 @@ Maven, there is no "`super parent`" to import to share some configuration.
[source,groovy,indent=0,subs="attributes"]
----
apply plugin: 'java'
repositories {
ifeval::["{spring-boot-repo}" != "release"]
maven { url "http://repo.spring.io/snapshot" }
...
...
@@ -240,32 +238,33 @@ managed by Spring Boot:
[source,groovy,indent=0,subs="attributes"]
----
ifeval::["{spring-boot-repo}" == "release"]
plugins {
id 'org.springframework.boot' version '{spring-boot-version}'
id 'java'
}
endif::[]
ifeval::["{spring-boot-repo}" != "release"]
buildscript {
repositories {
ifeval::["{spring-boot-repo}" != "release"]
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
endif::[]
ifeval::["{spring-boot-repo}" == "release"]
jcenter()
endif::[]
maven { url 'http://repo.spring.io/snapshot' }
maven { url 'http://repo.spring.io/milestone' }
}
dependencies {
classpath
("org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}")
classpath
'org.springframework.boot:spring-boot-gradle-plugin:{spring-boot-version}'
}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
endif::[]
repositories {
ifeval::["{spring-boot-repo}" != "release"]
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
endif::[]
ifeval::["{spring-boot-repo}" == "release"]
jcenter()
ifeval::["{spring-boot-repo}" != "release"]
maven { url 'http://repo.spring.io/snapshot' }
maven { url 'http://repo.spring.io/milestone' }
endif::[]
}
...
...
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