Commit Graph

794 Commits

Author SHA1 Message Date
Greg Turnquist
f3198b7d79 #1292 - Continue development on 1.2.0-SNAPSHOT. 2020-05-11 16:07:47 -05:00
Greg Turnquist
701f7a1a1b #1292 - Releasing Spring HATEOAS 1.1.0.RELEASE. 2020-05-11 16:07:41 -05:00
Greg Turnquist
f92f965d5a #1292 - Update changelog.txt. 2020-05-11 16:06:21 -05:00
Oliver Drotbohm
5d1136ee12 #968 - Polishing.
Original pull request: #1269.
2020-05-07 22:19:28 +02:00
Réda Housni Alaoui
08c5f564b3 #968 - Consider @JsonUnwrapped properties with (embedded) CollectionModel and HAL Forms.
Original pull request: #1269.
2020-05-07 22:19:01 +02:00
Oliver Drotbohm
b865ad403b #864 - Polishing.
Consistently use javascript instead of json for JSON code blocks in the reference documentation.
2020-05-07 21:48:16 +02:00
Oliver Drotbohm
2cab91a332 #864 - Introduced HalModelBuilder.
HalModelBuilder expose HAL-idiomatic API to set up representations. That includes embeds, previews and syntactic sugar around the inclusion of potentially empty collections as embeds.

Related tickets: #175, #193, #270, #920.
Original pull request: #1273.
2020-05-07 21:32:57 +02:00
Oliver Drotbohm
36ddb281f9 #1280 - Fix in invocation of generic RepresentationModelProcessor. 2020-04-29 17:04:44 +02:00
Oliver Drotbohm
6b8e30eeb0 #1278 - Continue development on 1.1.0.BUILD-SNAPSHOT. 2020-04-28 13:36:19 +02:00
Oliver Drotbohm
b36fb546b0 #1278 - Releasing Spring HATEOAS 1.1.0.RC1. 2020-04-28 13:36:17 +02:00
Oliver Drotbohm
f8b4e07b9b #1278 - Update changelog. 2020-04-28 13:35:03 +02:00
Oliver Drotbohm
312454815c #1278 - Dependency upgrades. 2020-04-28 13:29:21 +02:00
Greg Turnquist
0fcdea7e1b #1277 - Upgrade to Jackson 2.11.0. 2020-04-27 09:07:28 -05:00
Greg Turnquist
24a005abde #1275 - Align with Spring Framework naming convention for Kotlin co-routines.
* Deprecated existing `toCollectionModel` extension function using Kotlin's @Deprecated providing maximum ease for developers to migrate to new API.
* Added functions that create a full complement between ReactiveRepresentationModelAssemblerBuildDsl and SimpleReactiveRepresentationModelAssemblerBuildDsl on both `toModelAndAwait` and `toCollectionModelAndAwait`.

Related issue: #1213.
2020-04-22 13:20:37 -05:00
Greg Turnquist
90377a6e8d #227 - Verify UriTemplate reports variable parameter as "templated".
Resolved in a previous commit, this simply adds a test case verifying the regression doesn't happen.
2020-04-15 14:15:34 -05:00
Patrick ALLAIN
8995ba804a #1270 - Add Kotlin source to released artifacts.
Original pull request: #1271.
2020-04-14 11:19:39 -05:00
Greg Turnquist
c388a85b59 #1266 - Use JDK 14 for Java.NEXT CI testing. 2020-04-09 13:01:09 -05:00
Oliver Drotbohm
2973628c92 #1264 - Remove .factorypath. 2020-04-09 13:19:47 +02:00
Oliver Drotbohm
1ef3f53f1b #1247 - Upgrade to Spring Docs resources 0.2.1.
For improved content width.
2020-04-09 13:05:00 +02:00
Jay Bryant
e4fc1053a8 #1247 - Update spring-doc-resources and syntax highlighting for ref docs.
Update spring-doc-resources to get the latest look and feel and nicer code listings.
2020-04-07 11:54:53 -05:00
Greg Turnquist
b3697bf270 #1250 - Start testing against Jackson 2.11.
Related pull request: #1257.
2020-04-07 11:51:52 -05:00
Greg Turnquist
b46082b1b0 #1213 - Add support for Kotlin co-routines.
The ReactiveRepresentationModelAssembler and SimpleRepresentationModelAssembler both accept Flux inputs for entities. This change adds support for Kotlin co-routines to the same inputs.

Related pull request: #1258.
2020-04-07 11:50:20 -05:00
Oliver Drotbohm
1f8c0a4230 #1252 - Polishing.
We now make sure that BeanPostProcessors that are exposed consume their dependencies via ObjectFactory instances to avoid the need to prematurely trigger bean instantiation in the BeanPostProcessor detection phase. Marked the direct dependencies of the post processors as lazy, as the post processor only do actual work if beans of a particular type are available in the ApplicationContext. In case they aren't we don't even need to instantiate the downstream dependencies of the processors.

Avoid proxying of configuration classes where possible.

Related pull request: #1251.
2020-04-03 18:26:09 +02:00
Greg Turnquist
de38b9e200 #1252 - Make sure HypermediaWebTestClientConfigurer is only included with spring-test on the classpath.
HypermediaConfigurationImportSelector is now ResourceLoaderAware to make sure it uses the class loader used to bootstrap the application context. This is important for both testing as well as custom classloader arrangements like Boot's DevTools. We now only include WebTestHateoasConfiguration if WebTestClient is on the classpath.

The configuration class has been extracted to not leak references to code tied to spring-test into production deployments. Added test cases to check both the inclusion and exclusion of the configuration classes based on the classpath arrangement.

Original pull request: #1251.
2020-04-03 17:48:29 +02:00
Greg Turnquist
599a366c85 #1225 - Polishing. 2020-04-02 12:20:52 -05:00
Greg Turnquist
6a6cd31113 #1223 - Polishing. 2020-04-02 12:17:26 -05:00
Greg Turnquist
fae4cf0e68 #1224 - Polishing. 2020-04-02 12:15:44 -05:00
Greg Turnquist
600a975732 #1224 - Polishing. 2020-04-02 12:12:37 -05:00
Greg Turnquist
8dfa4d707f #1224 - Polishing. 2020-03-31 14:18:59 +02:00
Oliver Drotbohm
509152a0e1 #1244 - Continue development on 1.1.0.BUILD-SNAPSHOT. 2020-03-31 14:18:59 +02:00
Oliver Drotbohm
c060bd76e9 #1244 - Releasing Spring HATEOAS 1.1.0.M3. 2020-03-31 14:18:59 +02:00
Oliver Drotbohm
131ec70a6b #1244 - Update changelog. 2020-03-31 14:18:59 +02:00
Oliver Drotbohm
f4f0efc046 #1246 - Upgrade to AssertJ 3.15.0. 2020-03-31 14:00:09 +02:00
Oliver Drotbohm
df26afef58 #1245 - Upgrade to Kotlin 1.3.71. 2020-03-31 13:59:04 +02:00
Oliver Drotbohm
14f6375234 #1244 - Polishing.
Added missing license headers and a bit of formatting. Nullability annotations in HypermediaWebTestClientConfigurer.
2020-03-31 13:52:05 +02:00
Greg Turnquist
904a03a241 #1224 - Provide API for users to easily configure WebClient instances.
Introduce `HypermediaWebClientConfigurer` with a simple API that registers hypermedia types via `WebClient.Builder`.

Deprecate `WebClientConfigurer`, leveraging the new solution.

Update reference documentation showing how to use it, with and without Spring Boot.
2020-03-30 23:00:20 -05:00
Greg Turnquist
dea0001da2 #1223 - Provide API to configure RestTemplate with hypermedia.
Create a HypermediaRestTemplateConfigurer bean registered as a Spring HATEOAS bean.

Update reference documentation to show how to use it directly and with Spring Boot via RestTemplateCustomizer.
2020-03-30 22:20:27 -05:00
Greg Turnquist
4e697b899b #1225 - Polishing.
Appears one test case exerted a false positive. Fixing it exposed a gap and how to properly configure an existing WebTestClient (which is now in the reference docs).
2020-03-30 16:13:42 -05:00
Greg Turnquist
898752f0d5 #1225 - Provide implementation of WebTestClientConfigurer to support hypermedia registration.
Expand reference documentation to show ways to use it directly or via Spring Boot.
2020-03-30 12:23:07 -05:00
Oliver Drotbohm
6c09839cca #1241 - Additional factory methods for CollectionModel and PagedModel.
Added overloads of ….empty() to allow adding links right on construction.
2020-03-27 14:52:19 +01:00
Greg Turnquist
8f98519e07 #1230 - Upgrade to Jackson 2.10.3. 2020-03-24 09:47:57 -05:00
Greg Turnquist
b72f62be38 #1229 - Upgrade to Reactor Dysprosium-SR6. 2020-03-24 09:44:22 -05:00
Greg Turnquist
c519ffe69b #1228 - Fix CI scripts so they use maven caching.
By having the JAVA_HOME path match the Jenkins volume mount point, maven caching should now work properly and speed up CI building and testing.
2020-03-24 09:40:29 -05:00
Greg Turnquist
3ec045e89b #1227 - Upgrade to JUnit 5.6.1. 2020-03-24 09:39:18 -05:00
Greg Turnquist
0ebf610aaf #1226 - Upgrade to Spring Framework 5.2.5.RELEASE. 2020-03-24 09:35:31 -05:00
Greg Turnquist
b5ee56a129 #1208 - Polishing. 2020-03-19 12:50:14 -05:00
Greg Turnquist
934ae0320f #1208 - Migrate from Lombok's experimental @Wither to @With.
Lombok has moved their "wither" annotation annotation out of experimental phase and replaced it with @With.
2020-03-18 12:13:04 -05:00
Greg Turnquist
48718bb180 #1216 - Polishing. 2020-03-12 12:05:24 -05:00
Vedran Pavic
3a2551072e #1216 - Provide String constants in IanaLinkRelations.
This commit adds String constants to IanaLinkRelations, so that IanaLinkRelations can be leveraged in places where compile time constants are required, such as Relation#itemRelation and Relation#collectionRelation.
2020-03-11 23:06:20 +01:00
Vedran Pavic
1f49360637 #1215 - Update RFC-5988 references to RFC-8288.
Update code, javadoc, and documentation changes.
2020-03-09 14:35:18 -05:00