Commit Graph

388 Commits

Author SHA1 Message Date
Spring Buildmaster
ee3eae4abe #810 - Release version 0.25.1.RELEASE. 2019-02-12 22:04:21 +00:00
Oliver Drotbohm
1a54aa268d #810 - Fixed Javadoc plugin setup.
Extract common configuration into <pluginManagement /> section so that doclints run on CI as well.
2019-02-12 23:00:25 +01:00
Oliver Drotbohm
a9003006ed #809 - Project dependency upgrades.
Upgrade Spring Framework to 4.3.22 (and Spring build profiles), JaCoCo to 0.7.9, Jackson to the latest 2.8.11 service pack, Lombok to 1.18.6.
2019-02-12 22:48:53 +01:00
Greg Turnquist
575b0038fe #769 - Polishing. 2018-12-17 13:31:58 -06:00
Greg Turnquist
456507b387 #769 - Backport Concourse CI support to 0.25.x.
Introduces pipeline that replaces the Bamboo Spring HATEOAS one which builds on master branch and deploys to artifactory.

Additionally:

* Tests against JDK 8 before doing the final build and deploy.
* No JDK 11+ support.
* Also handles pull requests.
2018-12-17 11:49:49 -06:00
Greg Turnquist
1738688a98 #762 - Ignore unknown properties in LinkMixin.
Ignore the "templated" property when deserializing HAL documents.

Related pull requests: #668
Related issues: #667
2018-12-12 12:52:24 -06:00
Oliver Drotbohm
915fe4f3be #757 - Polishing.
Upgraded build profiles for Spring 5+.
2018-12-06 14:22:01 +01:00
Greg Turnquist
d885cb01dd #757 - Centralize all Forward header handling.
Spring 5.1 is centralizing all Forward header handling. This moves critical bits into one location, making it easy to completely remove once we re-baseline against this version.

Also adds a test profile to ensure Spring 5.1 doesn't break anything.

Original pull request: #717.
2018-12-06 14:21:49 +01:00
Oliver Drotbohm
9147b327f4 #755 - Upgrade to Jackson 2.8.11.2. 2018-12-06 13:45:10 +01:00
Oliver Drotbohm
91689821c8 #730 - Prepare 0.25.x development branch. 2018-12-06 13:24:46 +01:00
Spring Buildmaster
65a1504c09 #730 - Prepare next development iteration. 2018-07-25 22:43:31 +02:00
Spring Buildmaster
635aa3b04a #730 - Release version 0.25.0.RELEASE. 2018-07-25 22:43:23 +02:00
Oliver Gierke
827c50fe38 #730 - Prepare 0.25. 2018-07-25 22:38:53 +02:00
Oliver Gierke
7b0ce40277 #661 - Updated changelog for 0.24 release. 2018-07-25 22:38:40 +02:00
Oliver Gierke
ddcf01adf1 #724 - Make sure EncodingUtils compiles on both Spring 4.3 and 5.
We now catch Throwable instead of UnsupportedEncodingException as in Spring 5, the methods on UriUtils don't throw the latter anymore.
2018-06-20 19:33:27 +02:00
Oliver Gierke
80d13ed80e #723 - Simplified configuration setup.
We now avoid to register ObjectMapper instances as Spring beans and rather use one already existing in the ApplicationContext and copying the setup before registering the individual HttpMessageConverters for the individual media types.

Replaced a lot of the programmatic component setup via BeanDefinitions with their corresponding JavaConfig alternatives.

Removed obsolete media type specific HttpMessageConverters and configuration classes registering them.

Backport of fix for #719.
2018-06-20 17:24:07 +02:00
Oliver Gierke
a1683d3fdc #722 - Upgrade build dependencies. 2018-06-20 17:24:07 +02:00
Oliver Gierke
a8b65f2842 #721 - Upgraded to Lombok 1.18.0. 2018-06-20 17:24:07 +02:00
Oliver Gierke
12a596d873 #720 - Upgrade to Spring 4.3.18.
Upgraded build profiles for Spring 5 to the latest ones as well. Upgraded Jackson in those profiles to 2.9.6.
2018-06-20 17:24:07 +02:00
Oliver Gierke
a7708bb3fc #665 - Make sure Alps API stays compatible.
Tweaked the changes made to Alps and Descriptor builders so that they only affect the representation rendered by Jackson, not the actual API.
2018-06-20 17:24:02 +02:00
Greg Turnquist
6c0197cad3 #665 - Fix ALPS format.
According to the ALPS spec, it's "descriptor" not "descriptors", despite it depicting an array of potentially multiple values. Also fixed the ordering to match as closely as possible all the samples shown in the spec.

Original pull request: #666.
2018-04-18 16:28:19 +02:00
Spring Buildmaster
eff02e4d68 #661 - Prepare next development iteration. 2017-10-30 15:42:49 +01:00
Spring Buildmaster
b9bb40a111 #661 - Release version 0.24.0.RELEASE. 2017-10-30 15:42:42 +01:00
Oliver Gierke
f6a72c4281 #661 - Prepare 0.24 release.
Upgraded dependencies:

Spring Framework 4.3.11 -> 4.3.12
Logback 1.1.8 -> 1.1.11
Jackson 2.8.5 -> 2.8.10
Slf4J 1.7.22 -> 1.7.25
Evo Inflector 1.2.1 -> 1.2.2

Upgraded Spring Framework build profiles accordingly. Removed Asciidoctor plugin dependency for EPub as we don't actually generate them. Build plugin updates.
2017-10-30 15:12:13 +01:00
Kulcsár Roland
fcbfc1b1c8 #658 - Remove unused Enhancer variable in DummyInvocationUtils. 2017-10-30 12:42:31 +01:00
Oliver Gierke
d5e719825f #288 - Polishing.
Moved RenderSingleLinks enum into HalConfiguration. Simplified HalConfiguration setup by moving the default into the class. The lookup of a user-provided HalConfiguration is now handled on the bean name level to avoid premature initialization of a potentially defined bean. Formatting.

Original pull request: #295
Related issues: #291
2017-10-13 14:47:09 +02:00
Greg Turnquist
5eee30127d #288 - Introduced HalConfiguration to allow customizations of rendering options.
We now expose HalConfiguration to be defined as Spring bean in user configuration to control certain aspects of the HAL rendering. Initially we allow to control whether links shall always be rendered as collection. If no user-provided bean is available, we register a default instance.

Original pull request: #295
Related issues: #291
2017-10-13 14:30:16 +02:00
Kulcsár Roland
ab54e56f01 #638 - Fix typos in Javadoc. 2017-10-13 12:27:32 +02:00
Greg Turnquist
5faf9858bb #617 - AnnotatedParametersParameterAccessor now considers @AliasFor declarations.
We're now using SynthesizingMethodParameter to correctly support annotation attributes that use @AliasFor.

Original pull request: #621.
2017-10-13 11:43:08 +02:00
Oliver Gierke
4ad8c3b9aa #639 - Polishing.
Formatting and nullability in JavaDoc.
2017-10-05 15:28:21 +02:00
Oliver Gierke
ed7e430628 #639 - Added support for Optional controller method parameters in ControllerLinkBuilder.
We now properly consider Optional controller method parameters and correctly map its values to URIs created and optionality of the parameter derived.
2017-10-05 15:28:21 +02:00
Greg Turnquist
3006c47616 #635 - Upgrade to Spring 5 GA
On spring5 build profiles, use Spring 5 GA, and the subsequent snapshot release.
2017-09-28 11:53:59 -05:00
Greg Turnquist
ef825433e8 #627 - Upgrade to Spring 5 RC4 2017-09-18 09:48:47 -05:00
Oliver Gierke
9c7fa95541 #623 - Upgraded Spring 5 build profile to Jackson 2.9.1. 2017-09-08 17:28:15 +02:00
Oliver Gierke
8623106bb7 #597 - Polishing.
Formatting. Simplified resource loading in tests. Added missing line feed to ALPS sample file.
2017-09-07 13:49:14 +02:00
Greg Turnquist
b0820011e8 #597 - Add ALPS media type and LinkDiscoverer.
Migrate general ALPS material from Spring Data REST into Spring HATEOAS.
2017-09-07 13:48:37 +02:00
Oliver Gierke
312134ee82 #470 - Added HAL JSON UTF-8 variant to MediaTypes.
Added application/hal+json;charset=UTF-8 to the media types enum. Traverson now configures all HAL flavors to be supported by the registered HAL-specific HttpMessageConverter.

Removed nullability of media type in JsonPathLinkDiscoverer. This requires subclasses that want to support all media types to explicitly configure MediaType.ALL.

Heavily inspired by the PR submitted by @drummond but very significantly rewritten.
2017-09-07 13:37:59 +02:00
Oliver Gierke
05f687ef39 #567 - Polishing.
Field annotations inline. Formatting.
2017-07-28 09:45:04 +02:00
Greg Turnquist
891fd90f5a #567 - Add extra attributes to Link and use for HAL mediatype.
Adds many additional attributes defined in RFC5988 and verifies they work properly in the neutral representation of Link while also being rendered properly in the HAL module.

Related tickets: #100, #417, #235
Previous pull requests: #240, #238, #223, #79
2017-07-28 09:44:55 +02:00
Oliver Gierke
af3ec1a242 #408 - Polishing.
Original pull-request: #410.
Related issues: #330, #143, #516.
2017-07-27 19:04:50 +02:00
Greg Turnquist
b346366f73 #408 - Form relative links when outside a Spring web request
If forming a link outside a Spring web request, fallback to relative links.

Original pull-request: #410.
Related issues: #330, #143, #516.
2017-07-27 19:04:30 +02:00
Oliver Gierke
c784df964e #594 - Polishing.
Rather use early return for null annotation instead of conditional lookup.

Original pull request: #595.
2017-07-27 17:18:17 +02:00
Greg Turnquist
14a5a79490 #594 - Protect against Spring 5 non-null inputs.
Spring 5 has adopted a "no nulls" policy that causes certain methods to throw exceptions instead of returning a null. This updates Spring HATEOAS to handle it suitably.

Original pull request: #595.
2017-07-27 17:18:15 +02:00
Kulcsár Roland
82fb6ef9d2 #603 - Fix typos 2017-07-13 13:37:37 -05:00
Kulcsár Roland
6d86feb120 #604 - Make JacksonSerializationTest platform independent
Resolves #385
2017-07-11 10:45:09 -05:00
Kulcsár Roland
31c8b218b5 #600 - Fix typo in UriTemplate 2017-06-13 14:27:04 -05:00
Greg Turnquist
4807ae0e8a #585 - Add script to run ALL build profiles
Make it easier to pre-test all profiles without having to create a PR and wait on Travis.
2017-05-18 10:26:23 -05:00
Kulcsár Roland
483f8479bd #580 - Update IANA relation types
Per https://www.iana.org/assignments/link-relations/link-relations.xhtml, the list of standardized IANA rels has grown.
2017-05-17 11:11:26 -05:00
Oliver Gierke
6bed9bec40 #583 - Updated Jackson version to 2.9.0.pr for Spring 5 compatibility in build profile.
Fixed super constructor invocation to avoid NullPointerException in super class.
2017-05-16 13:33:27 +02:00
Oliver Gierke
d68700231e #582 - LinkBuilder now makes sure appended path is considered path segment.
We now prepend the given path (and query) handed to LinkBuilderSupport.slash(…) to make sure calls to UriComponentsBuilder.fromUriString(…) always considers the given value as path. Previously, a value containing a colon caused problems as the regex to detect scheme and port would accidentally match.

Related ticket: https://jira.spring.io/browse/DATAREST-1074
2017-05-16 13:13:52 +02:00