16408 Commits

Author SHA1 Message Date
Andy Wilkinson
8eae372433 Change handling of spring.config.location so it replaces defaults
Previously, spring.config.name was handled in such a way that its
value would replace the defaults. By constrast, spring.config.location
would add to the defaults.

Update the handling of spring.config.location so that it replaces the
defaults. This aligns its behaviour with spring.config.name. To allow
users to add additional locations a new property,
spring.config.additional-location, has been introduced. It behaves as
spring.config.location did prior to this change.

Closes gh-10595
2017-11-02 17:12:22 +00:00
Stephane Nicoll
9b8fefb0f4 Move micrometer export related keys under a common prefix #10858
Closes gh-10858
2017-11-02 16:55:34 +01:00
Andy Wilkinson
2ae4678b1e Drop support for Spring Mobile
Closes gh-10884
2017-11-02 14:39:46 +00:00
Andy Wilkinson
e43d0adc4f Polish 2017-11-02 12:05:18 +00:00
Andy Wilkinson
9bbccb093a Rename Gradle plugin tests to work around Windows filename restrictions
The Gradle plugin integration tests find their Gradle build scripts
using a naming convention of ${ClassName}-${methodName}.gradle. This
convention led to two gradle scripts with filenames that were long
enough to causes problems on Windows.

This commit renames two test methods to reduce the length of their
names and, therefore, the names of their corresponding Gradle script
files.

Closes gh-10868
2017-11-02 11:51:09 +00:00
Stephane Nicoll
e28b98c59d Remove multi config runApplication extension
Closes gh-10511
2017-11-02 12:04:22 +01:00
Vedran Pavic
3d44ef0872 Add support for configuring Spring Session cleanup cron
This commit adds support for configuring cron expression used for
expired session cleanup job in Redis and JDBC session stores.

Closes gh-10818
2017-11-02 11:56:11 +01:00
Stephane Nicoll
08272c92db Polish "Make editorial changes to appendix-configuration-metadata.adoc"
Closes gh-10874
2017-11-02 11:42:46 +01:00
Jay Bryant
78838fb2bb Make editorial changes to appendix-configuration-metadata.adoc
See gh-10874
2017-11-02 11:38:34 +01:00
Jay Bryant
d5c879c186 Make editorial changes to appendix-auto-configuration-classes.adoc
Closes gh-10875
2017-11-02 11:23:03 +01:00
Jay Bryant
5f4b5417a3 Make editorial changes to appendix-test-auto-configuration.adoc
Closes gh-10876
2017-11-02 11:21:00 +01:00
Stephane Nicoll
85cf019835 Polish "Make editorial changes to appendix-executable-jar-format.adoc"
Closes gh-10878
2017-11-02 11:19:01 +01:00
Jay Bryant
59bc74614b Make editorial changes to appendix-executable-jar-format.adoc
See gh-10878
2017-11-02 11:18:37 +01:00
Jay Bryant
16cf0e7e38 Make editorial changes to appendix-dependency-versions.adoc
Closes gh-10879
2017-11-02 11:09:54 +01:00
Jay Bryant
a0363f8f25 Add my name to the author list
I succumbed to a fit of vanity. ;)

Clsoes gh-10871
2017-11-02 11:06:10 +01:00
Johnny Lim
3fa7586c25 Remove System.out::println
Closes gh-10848
2017-11-02 11:04:46 +01:00
Phillip Webb
c11e514767 Allow individual builds of invoker plugin projects
Clean `${revision}` variables when running invoker based integration
tests. Prior to this commit some `${revision}` placeholders remained
in the invoker local repository preventing the project from being built
outside of the reactor.

Fixes gh-10667
2017-11-01 23:14:52 -07:00
Phillip Webb
c55b5d7111 Polish 2017-11-01 23:14:52 -07:00
Phillip Webb
44d8e09aac Polish endpoint parameter name discovery
Move logic from `ParameterNameMapper` into `ReflectiveOperationInvoker`
in order to reduce the surface area of the public API.

Also rename some classes for consistency.
2017-11-01 23:14:52 -07:00
Madhura Bhave
905e311ef2 Update javadoc 2017-11-01 18:20:14 -07:00
Madhura Bhave
b2efef2eed Detect springSecurityFilterChain using name 2017-11-01 17:39:58 -07:00
Madhura Bhave
083cf50685 Change condition for adding @EnableWebSecurity
Instead of looking for the presence of `WebSecurityConfiguration`,
this commit checks for the presence of a `Filter` with the name
springSecurityFilterChain. This allows users to configure the Filter
without adding `WebSecurityConfiguration`, making it more flexible.
`springSecurityFilterChain` is somewhat of a contract in Spring Security
and it relies on the name being `springSecurityFilterChain`.

Closes gh-10849
2017-11-01 16:43:49 -07:00
Andy Wilkinson
4757ad63f1 Fix typos in Javadoc of assertable application context classes
Closes gh-10865
2017-11-01 14:49:23 +00:00
Andy Wilkinson
fbfaddbd55 Wrap production-ready-features.adoc at 90 characters
Closes gh-10830
2017-11-01 11:06:46 +00:00
Jay Bryant
c7dabfeca5 Make editorial changes to production-ready-features.adoc
See gh-10830
2017-11-01 10:56:15 +00:00
Andy Wilkinson
cf4c490973 Add dependency managements for REST Docs' new webtestclient module
Closes gh-10819
2017-11-01 10:40:21 +00:00
Andy Wilkinson
8f4278c47f Update starters to route Log4j2 API into SLF4J by default
Closes gh-10847
2017-11-01 10:39:25 +00:00
Andy Wilkinson
2889ef99c7 Provide dependency management for log4j-to-slf4j
Closes gh-10860
2017-11-01 09:59:08 +00:00
Stephane Nicoll
74677629ff Remove handling of spring.git.properties
Closes gh-10857
2017-11-01 09:13:32 +01:00
Stephane Nicoll
8fe49eb9f7 Polish 2017-11-01 08:36:58 +01:00
Stephane Nicoll
9b6f0c83bf Add auto-configuration for DataSources
This commit automatically instruments all available data sources with
a configurable metric name. The instrumentation can be disabled in case
more control is needed.

Closes gh-10295
2017-11-01 08:34:37 +01:00
Stephane Nicoll
5208bd069d Fix typo 2017-11-01 08:34:28 +01:00
Stephane Nicoll
1739bfe077 Add missing title 2017-11-01 08:33:19 +01:00
Stephane Nicoll
5139881c4a Fix broken indent 2017-11-01 08:32:20 +01:00
Andy Wilkinson
28652209d6 Wrap spring-boot-features.adoc at 90 characters
Closes gh-10797
2017-10-31 19:05:18 +00:00
Jay Bryant
2e89fa7618 Make editorial changes to spring-boot-features.adoc
See gh-10797
2017-10-31 19:05:18 +00:00
Madhura Bhave
1e9fca0b76 Register a bean for OAuth2AuthorizedClientService
Closes gh-10837
2017-10-31 11:20:38 -07:00
Andy Wilkinson
ab4f211ebf Wrap deployment.adoc at 90 characters
Closes gh-10833
2017-10-31 17:31:18 +00:00
Jay Bryant
9f6dadf242 Make editorial changes to deployment.adoc
See gh-10833
2017-10-31 17:20:55 +00:00
Andy Wilkinson
6f55b57855 Make discovery of additional config metdata more robust with Gradle
Previously, the configuration metadata annotation processor relied
upon an additional metadata file have been copied to an output
location. When building with Gradle, it's the processResources task
that performs this copy and there is no guarantee that it will have
run before the compileJava task unless an explicit dependency betwee
the two tasks has been configured. If a project is built using
Gradle's parallel build support, the likelihood of this required
ordering not occurring increases.

This commit updates the configuration metadata annotation processor to
consider a new annotation processor option when looking for the
additional config metadata file. The Gradle plugin has been updated
to provide this option as a compiler argument. The option is only
provided when the annotation processor is found on the compilation
classpath to avoid a warning from javac's annotation processing about
the use of an option that is not supported by any of the available
annotation processors.

Closes gh-9755
2017-10-31 14:31:51 +00:00
Andy Wilkinson
56fde15fcb Wrap build-tool-plugins.adoc at 90 characters
Closes gh-10835
2017-10-31 12:51:57 +00:00
Jay Bryant
2ecd116470 Edit build-tool-plugins.adoc
See gh-10835
2017-10-31 12:51:54 +00:00
Andy Wilkinson
68b2ee3a75 Wrap spring-boot-cli.adoc at 90 characters
Closes gh-10834
2017-10-31 12:39:20 +00:00
Jay Bryant
f0901343bd Edit spring-boot-cli.adoc
See gh-10834
2017-10-31 12:39:05 +00:00
Andy Wilkinson
cf64580c87 Upgrade to Spring Session Data MongoDB 2.0.0.RC1
Closes gh-10841
2017-10-31 09:28:38 +00:00
Andy Wilkinson
b26bd21351 Upgrade to Spring Session 2.0.0.RC1
Closes gh-10817
2017-10-31 09:27:32 +00:00
Andy Wilkinson
2cce7c179f Upgrade to Spring Security 5.0.0.RC1
Closes gh-10705
2017-10-31 09:07:04 +00:00
Stephane Nicoll
cd45d373f2 Fix kotlin maven plugin coordinates 2017-10-31 09:37:02 +01:00
Andy Wilkinson
93a67e6b4a Polish 2017-10-30 23:11:18 +00:00
Andy Wilkinson
48cc7bde30 Test the Gradle plugin against Gradle 4.3
Closes gh-10769
2017-10-30 20:47:37 +00:00