Commit Graph

232 Commits

Author SHA1 Message Date
Andy Wilkinson cc7da8bf38 Wrap getting-started.adoc at 90 characters
Closes gh-10763
2017-10-28 11:59:17 +01:00
Jay Bryant ce40de5cbb Editorial changes to Getting Started documentation
See gh-10763
2017-10-28 11:59:10 +01:00
Andy Wilkinson 3ef67004a3 Reinstate blank line to fix formatting of Getting Started section
See gh-10754
2017-10-28 11:57:47 +01:00
Andy Wilkinson 4e885460b4 Update to Spring Cloud Connectors 2.0.0.RELEASE
Closes gh-10758
2017-10-28 07:26:59 +01:00
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
Andy Wilkinson 90ecb29667 Align with spring-security-jwt-jose being renamed to s-s-auth2-jose
Closes gh-10750
2017-10-23 15:58:37 +01:00
Andy Wilkinson 64939008fc Update to Reactor Bismuth-SR2
Closes gh-10679
2017-10-23 09:35:35 +01:00
Andy Wilkinson 616bac0d4f Upgrade to Reactor Bismuth-SR1
Closes gh-10679
2017-10-21 17:39:53 +01:00
Andy Wilkinson b7ce3e00a1 Revert Reactor Bismuth-SR1 work arounds as it is now in Central
This commit reverts:

 - 362735c
 - a6a8195

Closes gh-10738
2017-10-21 11:35:31 +01:00
Andy Wilkinson a6a8195ea8 Update CLI to work around Framework's early adoption of Bismuth-SR1 2017-10-21 09:57:08 +01:00
Andy Wilkinson e561b969bf Remove dependency management for s-b-s-security-reactive
See gh-10704
2017-10-21 09:25:03 +01:00
Andy Wilkinson 34205d189a Upgrade to Jetty El 8.5.23
Closes gh-10737
2017-10-21 08:18:54 +01:00
Andy Wilkinson 8d861053ad Upgrade to Narayana 5.7.1.Final
Closes gh-10736
2017-10-21 08:18:54 +01:00
Andy Wilkinson a86b7e3fdb Upgrade to Hibernate Validator 6.0.3.Final
Closes gh-10735
2017-10-21 08:18:53 +01:00
Andy Wilkinson f47d158e97 Upgrade to Hibernate 5.2.12.Final
Closes gh-10734
2017-10-21 08:18:53 +01:00
Andy Wilkinson a08ee4660b Upgrade to Derby 10.14.1.0
Closes gh-10733
2017-10-21 08:18:52 +01:00
Andy Wilkinson 680311cdc2 Upgrade to Rxjava 1.3.3
Closes gh-10732
2017-10-21 08:18:52 +01:00
Andy Wilkinson a46284a7eb Upgrade to Commons Codec 1.11
Closes gh-10731
2017-10-21 08:18:51 +01:00
Andy Wilkinson 0bca0dd6d0 Merge branch '1.5.x' 2017-10-21 08:13:17 +01:00
Madhura Bhave 64b9451e2f Fix OAuth2 client tests following upstream changes 2017-10-20 11:57:13 -07:00
Stephane Nicoll ef80772b92 Merge branch '1.5.x' 2017-10-20 17:31:44 +02:00
Andy Wilkinson fa1eceda8d Merge branch '1.5.x' 2017-10-20 10:30:46 +01:00
Stephane Nicoll 61f16fe68f Merge branch '1.5.x' 2017-10-20 11:04:53 +02:00
Stephane Nicoll a8e0b0dd4e Merge branch '1.5.x' 2017-10-20 08:42:17 +02:00
Johnny Lim 44ae148ecd Polish
Closes gh-10700
2017-10-20 08:15:57 +02:00
Stephane Nicoll ef9b9d9a3e Polish
See gh-10671
2017-10-20 08:13:40 +02:00
Madhura Bhave 80b5da78a1 Fix test failures 2017-10-19 18:23:01 -07:00
Madhura Bhave 8600bd7294 Upgrade to Spring Security 5.0.0.BUILD-SNAPSHOT
Following some changes in the latest snapshot this includes:
- Some updates to oauth2 client auto-config
- Security auto-config no longer relies on GlobalAuthenticationConfigurerAdapter
- Remove reactive security starter

Closes gh-10704
2017-10-19 15:39:01 -07:00
Madhura Bhave eb446d07d9 Default provider to registration-id if not present
Closes gh-10671
2017-10-19 13:03:57 -07:00
Madhura Bhave df30d2fc10 Expose all endpoints under /cloudfoundryapplication
Regardless of whether the web endpoints have been enabled or not,
all endpoints for which beans are created need to be exposed in a
CF environment under /cloudfoundryapplication.

Closes gh-10673
2017-10-19 11:26:38 -07:00
Stephane Nicoll c2f649df54 Add support for JPA mapping resources
Closes gh-10684
2017-10-19 17:35:38 +02:00
Stephane Nicoll c4026806a6 Polish 2017-10-19 17:14:49 +02:00
Andy Wilkinson ccca943e33 Add mainClassName to springBoot DSL in Gradle plugin
This commit introduces a new mainClassName property on the springBoot
DSL provided by the Gradle plugin. It can be used to explicitly
configure the mainClassName of the default bootRun, bootJar, and
bootWar tasks in a single place. Previously, the only mechanism
provided to do so was the mainClassName property that's only available
when the application plugin has been applied.

Closes gh-10623
2017-10-19 13:55:13 +01:00
Andy Wilkinson 5502aaafd1 Use mainClassName consistently across BootRun, BootJar, and BootWar
Previously, BootRun used the main property to configure the name of
the main class to run while BootJar and BootWar used the mainClass
property. Both were different to the application plugin which provides
a mainClassName project property.

This commit updates BootRun, BootJar, and BootWar to change the name
of the property used to configure the name of the main class to be
mainClassName. This makes the three Boot-specific tasks consistent
with each other, and also aligns them with Gradle's own application
plugin.

Closes gh-10622
2017-10-19 12:16:35 +01:00
Stephane Nicoll 02be86ddca Remove unnecessary exclusion on aopalliance
Closes gh-10691
2017-10-19 08:57:47 +02:00
Stephane Nicoll b2839e2210 Merge branch '1.5.x' 2017-10-18 21:12:15 +02:00
Brian Clozel 14081c8557 Update to Bismuth-BUILD-SNAPSHOT
See gh-10679
2017-10-18 12:06:03 +02:00
Andy Wilkinson a5a9fc5186 Upgrade to Snakeyaml 1.19
Closes gh-10678
2017-10-18 08:49:48 +01:00
Andy Wilkinson a1843a378f Upgrade to Jooq 3.10.1
Closes gh-10677
2017-10-18 08:49:48 +01:00
Andy Wilkinson 5e70714b30 Upgrade to Solr 6.6.2
Closes gh-10676
2017-10-18 08:49:48 +01:00
Andy Wilkinson ec2e3e53bb Upgrade to Sendgrid 4.1.1
Closes gh-10675
2017-10-18 08:49:48 +01:00
Andy Wilkinson 06939023e3 Upgrade to Jackson 2.9.2
Closes gh-10674
2017-10-18 08:49:48 +01:00
dreis2211 ed213ec462 Polish HttpHeaderInterceptor
Closes gh-10670
2017-10-18 08:57:09 +02:00
Andy Wilkinson 77cbab794e Make TomcatEmbeddedWebappClassLoader parallel capable
Closes gh-10477
2017-10-17 16:04:27 +01:00
Andy Wilkinson 027c5a0e35 Remove usage of Mockito's internals
Previously, we relied on Mockito's internals to bypass any Spring AOP
proxy during verification of a spy. Thanks to a new API in Mockito,
we can replace the use of Mockito's internals with a
VerificationStartedListener. This listener changes Mockito's view of
the mock to be the ultimate target of the AOP proxy, i.e. to be the
actual Mockito-created spy, allowing Mockito's verification of the
spy to proceed successfully.

This above-described change will mean that we require a very
up-to-date version of Mockito so the tests that verify our
compatibility with 2.5 have been removed as we will no longer support
it when using @MockBean or @SpyBean.

Lastly, two tests have been updated to replace their usage of the
internal MockUtil class with the equivalent public API calls.

Closes gh-10352
2017-10-17 15:56:28 +01:00
Andy Wilkinson ec4b80443f Upgrade to Mockito 2.11.0
Closes gh-10668
2017-10-17 15:56:16 +01:00
Andy Wilkinson 688da652ac Polish 2017-10-17 15:41:55 +01:00
Andy Wilkinson 70f6c784c7 Upgrade to Spring Web Services 3.0.0.RC1
Closes gh-10666
2017-10-17 15:41:55 +01:00
Stephane Nicoll dd90f071c6 Bump ASM version to be Java 8+ compatible
Closes gh-10647
2017-10-17 16:29:06 +02:00
Johnny Lim caa6e18be1 Remove "Securing the H2 console" section
Closes gh-10657
2017-10-17 15:44:13 +02:00
Stephane Nicoll 2eba1c5f62 Polish "Use Assert.state() with Supplier where possible"
Closes gh-10658
2017-10-17 15:36:51 +02:00