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
378d38e2
Commit
378d38e2
authored
Jun 20, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish doc formatting
parent
bfe4240e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
build-tool-plugins.adoc
spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
+14
-12
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+1
-0
using-spring-boot.adoc
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+3
-3
No files found.
spring-boot-docs/src/main/asciidoc/build-tool-plugins.adoc
View file @
378d38e2
...
...
@@ -373,9 +373,9 @@ Running this way makes your static classpath resources (i.e. in `src/main/resour
default
)
reloadable
in
the
live
application
,
which
can
be
helpful
at
development
time
.
[[
build
-
tool
-
plugins
-
gradle
-
global
-
configuration
]]
===
Spring
Boot
P
lugin
configuration
===
Spring
Boot
p
lugin
configuration
The
gradle
plugin
automatically
extends
your
build
script
DSL
with
a
`
springBoot
`
element
for
global
configuration
of
the
Boot
plugin
.
Set
the
appropriate
properties
as
you
would
for
global
configuration
of
the
Boot
plugin
.
Set
the
appropriate
properties
as
you
would
with
any
other
Gradle
extension
(
see
below
for
a
list
of
configuration
options
):
[
source
,
groovy
,
indent
=
0
,
subs
=
"verbatim,attributes"
]
...
...
@@ -386,6 +386,7 @@ with any other Gradle extension (see below for a list of configuration options):
----
[[
build
-
tool
-
plugins
-
gradle
-
repackage
-
configuration
]]
===
Repackage
configuration
The
plugin
adds
a
`
bootRepackage
`
task
which
you
can
also
configure
directly
,
e
.
g
.:
...
...
@@ -407,27 +408,28 @@ The following configuration options are available:
|
The
main
class
that
should
be
run
.
If
not
specified
the
`
mainClassName
`
project
property
will
be
used
or
,
if
the
no
`
mainClassName
`
id
defined
the
archive
will
be
searched
for
a
suitable
class
.
"Suitable"
means
a
unique
class
with
a
well
-
formed
`
main
()`
method
(
if
more
than
one
is
found
the
build
will
fail
).
You
should
also
be
able
to
specify
the
main
class
name
via
the
"run"
task
(`
main
`
property
)
and
/
or
the
"startScripts"
(`
mainClassName
`
property
)
as
an
alternative
to
using
the
"springBoot"
configuration
.
more
than
one
is
found
the
build
will
fail
).
You
should
also
be
able
to
specify
the
main
class
name
via
the
"run"
task
(`
main
`
property
)
and
/
or
the
"startScripts"
(`
mainClassName
`
property
)
as
an
alternative
to
using
the
"springBoot"
configuration
.
|`
classifier
`
|
A
file
name
segment
(
before
the
extension
)
to
add
to
the
archive
,
so
that
the
original
is
preserved
in
its
original
location
.
Defaults
to
null
in
which
case
the
archive
is
repackaged
in
place
.
The
default
is
convenient
for
many
purposes
,
but
if
you
want
to
use
th
e
original
jar
as
a
dependency
in
another
project
,
it
's best to use an extension to define the
executable archive.
preserved
in
its
original
location
.
Defaults
to
null
in
which
case
the
archive
is
repackaged
in
place
.
The
default
is
convenient
for
many
purposes
,
but
if
you
want
to
us
e
the
original
jar
as
a
dependency
in
another
project
,
it
's best to use an extension to
define the
executable archive.
|`withJarTask`
|The name of the `Jar` task (defaults to all) which is used to locate the archive to repackage.
|The name of the `Jar` task (defaults to all) which is used to locate the archive to
repackage.
|`customConfiguration`
|The name of the custom configuration whuch is used to populate the nested lib directory
(without specifying this you get all compile and runtime dependencies).
(without specifying this you get all compile and runtime dependencies).
|===
[[build-tool-plugins-gradle-repackage-custom-configuration]]
=== Repackage with custom Gradle configuration
Sometimes it may be more appropriate to not package default dependencies resolved from
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
378d38e2
...
...
@@ -1832,6 +1832,7 @@ own beans:
----
[[boot-features-integration]]
== Spring Integration
Spring Integration provides abstractions over messaging and also other transports such as
...
...
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
View file @
378d38e2
...
...
@@ -125,9 +125,9 @@ section if you want to use it:
</
build
>
----
NOTE
:
If
you
use
the
Spring
Boot
starter
parent
pom
,
you
only
need
to
add
the
plugin
,
there
is
no
need
for
to
configure
it
unless
you
want
t
o
change
the
settings
defined
in
t
he
parent
.
NOTE
:
If
you
use
the
Spring
Boot
starter
parent
pom
,
you
only
need
to
add
the
plugin
,
there
is
no
need
for
to
configure
it
unless
you
want
to
change
the
settings
defined
in
the
parent
.
...
...
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