178 Commits

Author SHA1 Message Date
Stephane Nicoll
cba430818f Adapt to change in latest Spring Security snapshot 2017-10-28 08:02:39 +02:00
Stephane Nicoll
a34ff67a1d Merge branch '1.5.x' 2017-10-28 07:58:45 +02:00
Stephane Nicoll
ff3fe7a09f Merge branch '1.5.x' 2017-10-28 07:53:56 +02:00
Andy Wilkinson
708f917b3a Manage the version of Kotlin's kotlin-runtime module
See gh-10511
2017-10-27 22:48:52 +01:00
Andy Wilkinson
88f869bf06 Remove misleading setters from ConfigurationPropertiesBindingPostProcessor
Previously, ConfigurationPropertiesBindingPostProcessor had a number
of setter methods that implied that its configuration was more mutable
than it actually is and would only have an effect when called early
on in the post-processor's lifecycle.

This commit clarifies how the post-processor can be configured by
removing the misleading setters.

Closes gh-10598
2017-10-27 21:44:12 +01:00
Andy Wilkinson
85b1511085 Make configuration properties binding always uses current environment
Previously, configuration properties binding would only see changes to
the environment if there was no PropertySourcesPlaceholderConfigurer
in the context. This happened because
PropertySourcesPlaceholderConfigurer wrapped the Environment in a
PropertySource, effectively hiding it from the change tracking
performed by SpringConfigurationPropertySources.

This commit updates ConfigurationPropertiesBindingPostProcessor so
that it ignores the environment property source contained by
PropertySourcesPlaceholderConfigurer and uses a composite of
the PropertySourcesPlaceholderConfigurer's other property sources and
the Environment's PropertySources instead.
2017-10-27 21:29:09 +01:00
Andy Wilkinson
ca4d7f7322 Test the Gradle plugin against Gradle 4.3-rc-4
See gh-10769
2017-10-27 20:30:50 +01:00
Andy Wilkinson
de47eff0a4 Upgrade to Spring Data Kay SR1
Closes gh-10759
2017-10-27 19:57:15 +01:00
Andy Wilkinson
525b0a05c0 Upgrade to Rxjava2 2.1.6
Closes gh-10796
2017-10-27 19:56:46 +01:00
Andy Wilkinson
30578fa94f Align with new name for Spring Cloud Connectors' core module
See gh-10758
2017-10-27 17:17:39 +01:00
Stephane Nicoll
caf4c4c6dd Make use of Batch's new API for accessing job parameters
Closes gh-10135
2017-10-27 14:53:25 +02:00
Stephane Nicoll
cd6f11ba9b Upgrade to Spring Batch 4.0.0.M5
Closes gh-10792
2017-10-27 14:38:44 +02:00
Stephane Nicoll
fd07bfd816 Polish "Add runApplication() Kotlin top level function"
Closes gh-10511
2017-10-27 14:22:15 +02:00
Sebastien Deleuze
605ede88f7 Specify kotlin-maven-plugin version for plugin management
See gh-9486
2017-10-27 14:18:24 +02:00
Sebastien Deleuze
baffecdb14 Add runApplication() Kotlin top level function
Since Kotlin extensions do not apply to static
methods, this commit introduces a runApplication()
Kotlin top level function that acts as a Kotlin
shortcut for SpringApplication.run().

This shortcut avoids to require using non-idiomatic
code like SpringApplication.run(FooApplication::class.java)
and provides a runApplication<FooApplication>() alternative
(as well as an array of KClass based alternative when
multiple classes need to be passed as parameter).

It is possible to customize the application with the
following syntax:

runApplication<FooApplication>() {
    setEnvironment(environment)
}

See gh-10511
2017-10-27 14:18:24 +02:00
Sebastien Deleuze
65f5bfeb67 Add Kotlin main artifacts to dependency management
This commit adds Kotlin main artifacts to Spring
Boot dependency management and will be replaced by
Kotlin BOM when it will be available (see KT-18398).

See gh-9486
2017-10-27 14:18:24 +02:00
Andy Wilkinson
194e03c913 Polish mock verification and formatting
See gh-10773
2017-10-27 09:43:25 +01:00
Andy Wilkinson
37392c0ec8 Adapt to changed default login redirect URL in OAuth 2 Client support
See https://github.com/spring-projects/spring-security/issues/4687
See gh-10705
2017-10-27 09:19:57 +01:00
Andy Wilkinson
ee2550ad7d Upgrade to Neo4j Ogm 3.0.1
Closes gh-10789
2017-10-27 09:03:43 +01:00
Andy Wilkinson
9f8c403d21 Upgrade to Hibernate Validator 6.0.4.Final
Closes gh-10788
2017-10-27 09:03:43 +01:00
Andy Wilkinson
20eb2f8644 Upgrade to Activemq 5.15.2
Closes gh-10787
2017-10-27 09:03:43 +01:00
Andy Wilkinson
c3f68acd88 Upgrade to Byte Buddy 1.7.8
Closes gh-10786
2017-10-27 09:03:43 +01:00
Stephane Nicoll
dbb1e222ab Initialize only an embedded datasource by default
This commit renames spring.datasource.initialize to
spring.datasource.initialization-mode and use the
DataSourceInitializationMode enum. By default, only an embedded
datasource is initialized.

Closes gh-10773
2017-10-27 09:50:37 +02:00
Stephane Nicoll
b720c2141c Rename DatabaseInitialization to DataSourceInitialization
Closes gh-10779
2017-10-26 16:26:08 +02:00
Stephane Nicoll
555f51bfdb Fix checkstyle violation 2017-10-26 15:56:01 +02:00
Stephane Nicoll
00e0d61ee4 Use ParameterNameDiscoverer to detect operation's parameter names
Closes gh-10117
2017-10-26 15:13:00 +02:00
Stephane Nicoll
56afc25304 Allow to customize the path of a web endpoint
This commit introduces a endpoints.<id>.web.path generic property that
allows to customize the path of an endpoint. By default the path is the
same as the id of the endpoint.

Such customization does not apply for the CloudFoundry specific
endpoints.

Closes gh-10181
2017-10-26 14:36:14 +02:00
Stephane Nicoll
852ad093b2 Add support for @SendTo with kafka listener
This commit makes sure that the `replyTemplate` is set if a
KafkaTemplate is available in the context which effectively add support
for `@SendTo`.

Closes gh-10669
2017-10-25 18:04:08 +02:00
Stephane Nicoll
3412ee62d5 Make @Validated a hard requirement for JSR-303 validation
Closes gh-8024
2017-10-25 17:43:18 +02:00
Stephane Nicoll
97c1365e24 Remove Http401AuthenticationEntryPoint
Closes gh-10715
2017-10-25 14:03:14 +02:00
Stephane Nicoll
b23f68b0d5 Merge branch '1.5.x' 2017-10-25 13:59:54 +02:00
Stephane Nicoll
7e438ca6c2 Merge branch '1.5.x' 2017-10-25 13:23:10 +02:00
Stephane Nicoll
78229bdbc7 Add ref to Okta Spring Boot starter
See gh-10064
2017-10-25 13:10:22 +02:00
Andy Wilkinson
c3f3bba090 Test the Gradle plugin against Gradle 4.3-rc-3
See gh-10769
2017-10-25 08:59:50 +01:00
Stephane Nicoll
e2d8fa92b4 Upgrade to Spring Framework 5.0.1.RELEASE
Closes gh-10587
2017-10-25 09:26:59 +02:00
Vedran Pavic
ac10fa31cd Upgrade to Hazelcast 3.9
Closes gh-10764
2017-10-25 08:56:35 +02:00
Madhura Bhave
2e3187d1f6 Null values from yaml should be stored as empty string
When building a flattened map, the YamlProcessor from
Spring Framework, converts a null value to an empty string.
We want the null value to also keep track of its origin,
which is why this commit creates an `OriginTrackedValue`
for an empty string if the original value is null.

Fixes gh-10656
2017-10-24 14:57:22 -07:00
Madhura Bhave
182b6f0d29 Fix OAuth2 client tests as per upstream changes 2017-10-24 14:43:20 -07:00
Andy Wilkinson
66b55defa0 Adapt to password encoder changes in Spring Security
Closes gh-10762
2017-10-24 21:50:19 +01:00
Andy Wilkinson
2b426c30a6 Polish “Remove explicit type arguments”
Closes gh-10494
2017-10-24 14:44:26 +01:00
Johnny Lim
6168fae720 Remove explicit type arguments
See gh-10494
2017-10-24 14:44:20 +01:00
Andy Wilkinson
a256602c7b Polish 2017-10-24 14:41:03 +01:00
Andy Wilkinson
7065a41711 Start building against snapshots for Spring Data Kay-SR1
See gh-10759
2017-10-24 12:06:55 +01:00
Andy Wilkinson
f5f56ba6b2 Start building against 2.0 snapshots of Spring Cloud Connectors
See gh-10758
2017-10-24 12:04:09 +01:00
Jay Bryant
9a9850310c Editorial changes to overview section of the reference documentation
Closes gh-10754
2017-10-24 11:44:26 +01:00
Stephane Nicoll
76c4819053 Remove internal configuration properties validator cleanup
This commit removes the cleanup of the javax.validator.Validator that
can be created to validate @ConfigurationProperties binding as the
memory effect can no longer be reproduced.

Closes gh-10573
2017-10-24 10:05:52 +02:00
Stephane Nicoll
59a906bd58 Upgrade Java9 build to AspectJ 1.9.0.RC1 2017-10-24 09:32:34 +02:00
Andy Wilkinson
9dc575a59d Upgrade to Reactor Bismuth-SR3
Closes gh-10679
2017-10-23 19:26:52 +01:00
Stephane Nicoll
2b69e3c6d5 Fix metadata of spring.mustache.suffix
Closes gh-10752
2017-10-23 19:46:18 +02:00
Andy Wilkinson
67a8c3a838 Remove erroneous dependency management for reactor-extra
See 64939008
2017-10-23 17:30:54 +01:00