Commit Graph

410 Commits

Author SHA1 Message Date
Greg Turnquist
db1fa0acd5 #1024 - Publish documentation using CI server.
By letting the CI server assemble and publish documentation to docs.spring.io, we can ensure publicly posted docs are up-to-date.

Resolves #1037 by backporting to 0.25.x.
2019-08-12 09:51:37 -05:00
Greg Turnquist
c64aaacd46 #853 - Fine tune release script to allow ticket number.
Resolves: #1043
2019-08-09 16:04:14 -05:00
Greg Turnquist
4decff504e Continue development on v0.25.3.BUILD-SNAPSHOT 2019-08-02 09:06:01 -05:00
Greg Turnquist
76c253ca7f Releasing Spring HATEOAS v0.25.2.RELEASE 2019-08-02 09:05:54 -05:00
Greg Turnquist
65de58eb26 #1032 - Update changelogs for 0.25.x. 2019-08-02 08:58:22 -05:00
Greg Turnquist
415ac7379f #1033 - Upgrade to Spring Framework 4.3.25. 2019-08-02 08:52:51 -05:00
Greg Turnquist
f2537121eb #1008 - Set user.name and user.home for CI jobs. 2019-06-27 15:56:38 -05:00
Greg Turnquist
f01a82389d #999 - Backport introduction of Jenkins CI. 2019-06-07 16:47:03 -05:00
Greg Turnquist
8975c92312 #975 - Polishing.
Original issue: #971
2019-04-02 13:22:07 -05:00
Michael Wirth
060b94e000 #975 - Only expand templated links with Traverson when requested.
Original issue: #971
2019-04-02 13:22:03 -05:00
Spring Operator
32cd95f351 #910 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.springframework.org/schema/beans/spring-beans.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* [ ] http://www.springframework.org/schema/context/spring-context.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/context/spring-context.xsd ([https](https://www.springframework.org/schema/context/spring-context.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 2 occurrences
* http://www.springframework.org/schema/beans with 2 occurrences
* http://www.springframework.org/schema/context with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 2 occurrences
* http://www.w3.org/2005/Atom with 2 occurrences
2019-04-01 10:16:51 -05:00
Spring Operator
78177892ba #910 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* [ ] http://alps.io (200) with 1 occurrences could not be migrated:
   ([https](https://alps.io) result AnnotatedConnectException).
* [ ] http://alps.io/spec/ (200) with 6 occurrences could not be migrated:
   ([https](https://alps.io/spec/) result AnnotatedConnectException).
* [ ] http://stateless.co/hal_specification.html (200) with 2 occurrences could not be migrated:
   ([https](https://stateless.co/hal_specification.html) result SSLHandshakeException).
* [ ] http://foo.com/bar (301) with 4 occurrences could not be migrated:
   ([https](https://foo.com/bar) result SSLHandshakeException).
* [ ] http://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html (302) with 1 occurrences could not be migrated:
   ([https](https://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html) result SSLHandshakeException).
* [ ] http://alps.io/ext/range (404) with 2 occurrences could not be migrated:
   ([https](https://alps.io/ext/range) result AnnotatedConnectException).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* [ ] http://tools.ietf.org/html/draft-kelly-json-hal (301) with 2 occurrences migrated to:
  https://tools.ietf.org/html/draft-kelly-json-hal ([https](https://tools.ietf.org/html/draft-kelly-json-hal) result ReadTimeoutException).
* [ ] http://acme.com/rels/foo-bar (404) with 2 occurrences migrated to:
  https://acme.com/rels/foo-bar ([https](https://acme.com/rels/foo-bar) result 404).
* [ ] http://docs.spring.io/spring-hateoas/docs/current-SNAPSHOT/api/ (301) with 1 occurrences migrated to:
  https://docs.spring.io/spring-hateoas/docs/current-SNAPSHOT/api/ ([https](https://docs.spring.io/spring-hateoas/docs/current-SNAPSHOT/api/) result 404).
* [ ] http://example.com/custom/deprecated (404) with 1 occurrences migrated to:
  https://example.com/custom/deprecated ([https](https://example.com/custom/deprecated) result 404).
* [ ] http://example.com/customers/deprecated (404) with 2 occurrences migrated to:
  https://example.com/customers/deprecated ([https](https://example.com/customers/deprecated) result 404).
* [ ] http://example.com/rels/ (404) with 2 occurrences migrated to:
  https://example.com/rels/ ([https](https://example.com/rels/) result 404).
* [ ] http://example.com/rels/persons (404) with 1 occurrences migrated to:
  https://example.com/rels/persons ([https](https://example.com/rels/persons) result 404).
* [ ] http://example.org/samples/full/doc.html (404) with 3 occurrences migrated to:
  https://example.org/samples/full/doc.html ([https](https://example.org/samples/full/doc.html) result 404).
* [ ] http://www.example.com/rels/ (404) with 1 occurrences migrated to:
  https://www.example.com/rels/ ([https](https://www.example.com/rels/) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://docs.spring.io/spring-hateoas/docs/current/reference/html/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-hateoas/docs/current/reference/html/ ([https](https://docs.spring.io/spring-hateoas/docs/current/reference/html/) result 200).
* [ ] http://docs.spring.io/spring-hateoas/docs/current/reference/pdf/spring-hateoas-reference.pdf with 1 occurrences migrated to:
  https://docs.spring.io/spring-hateoas/docs/current/reference/pdf/spring-hateoas-reference.pdf ([https](https://docs.spring.io/spring-hateoas/docs/current/reference/pdf/spring-hateoas-reference.pdf) result 200).
* [ ] http://en.wikipedia.org/wiki/HATEOAS with 2 occurrences migrated to:
  https://en.wikipedia.org/wiki/HATEOAS ([https](https://en.wikipedia.org/wiki/HATEOAS) result 200).
* [ ] http://projects.spring.io/spring-hateoas/ with 2 occurrences migrated to:
  https://projects.spring.io/spring-hateoas/ ([https](https://projects.spring.io/spring-hateoas/) result 200).
* [ ] http://tools.ietf.org/html/draft-kelly-json-hal-05 with 1 occurrences migrated to:
  https://tools.ietf.org/html/draft-kelly-json-hal-05 ([https](https://tools.ietf.org/html/draft-kelly-json-hal-05) result 200).
* [ ] http://tools.ietf.org/html/rfc6570 with 1 occurrences migrated to:
  https://tools.ietf.org/html/rfc6570 ([https](https://tools.ietf.org/html/rfc6570) result 200).
* [ ] http://tools.ietf.org/html/rfc7239 with 1 occurrences migrated to:
  https://tools.ietf.org/html/rfc7239 ([https](https://tools.ietf.org/html/rfc7239) result 200).
* [ ] http://www.example.com with 2 occurrences migrated to:
  https://www.example.com ([https](https://www.example.com) result 200).
* [ ] http://www.iana.org/assignments/link-relations/link-relations.xhtml with 2 occurrences migrated to:
  https://www.iana.org/assignments/link-relations/link-relations.xhtml ([https](https://www.iana.org/assignments/link-relations/link-relations.xhtml) result 200).
* [ ] http://amazon.com with 4 occurrences migrated to:
  https://amazon.com ([https](https://amazon.com) result 301).
* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* [ ] http://www.w3.org/TR/curie with 1 occurrences migrated to:
  https://www.w3.org/TR/curie ([https](https://www.w3.org/TR/curie) result 301).
* [ ] http://tools.ietf.org/html/rfc5988=section-4 with 1 occurrences migrated to:
  https://tools.ietf.org/html/rfc5988=section-4 ([https](https://tools.ietf.org/html/rfc5988=section-4) result 302).
* [ ] http://www.springsource.org/download with 1 occurrences migrated to:
  https://www.springsource.org/download ([https](https://www.springsource.org/download) result 302).

# Ignored
These URLs were intentionally ignored.

* http://barfoo:8888 with 1 occurrences
* http://foobar with 1 occurrences
* http://foobar:8088 with 1 occurrences
* http://foobarhost/ with 1 occurrences
* http://foobarhost:9090/ with 1 occurrences
* http://localhost with 7 occurrences
* http://localhost/ with 1 occurrences
* http://localhost/sample/1/foo with 1 occurrences
* http://localhost/sample/2/bar with 1 occurrences
* http://localhost/something/bar/foo with 1 occurrences
* http://localhost:8080/api/ with 1 occurrences
* http://localhost:8080/foo with 2 occurrences
* http://localhost:8080/rels with 1 occurrences
* http://localhost:8080/rels/ with 4 occurrences
* http://localhost:8080/something with 4 occurrences
* http://localhost:8080/test?page=0&filter=foo,bar with 2 occurrences
* http://localhost:8080/your-app with 1 occurrences
* http://localhost:8080/your-app/people with 1 occurrences
* http://myhost/people with 4 occurrences
* http://myhost/person/1 with 1 occurrences
* http://myhost/person/1/orders with 1 occurrences
* http://proxy1:1443 with 1 occurrences
* http://somethingDifferent with 1 occurrences
* http://www.w3.org/2005/Atom with 3 occurrences
2019-04-01 10:13:37 -05:00
Spring Operator
66f833e52e #894 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 2 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 152 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-22 12:11:17 -05:00
Spring Operator
69431f3a4f #868 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 with 4 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
* http://static.springframework.org/spring/docs/4.3.x/javadoc-api (301) with 1 occurrences migrated to:
  https://docs.spring.io/spring/docs/4.3.x/javadoc-api ([https](https://static.springframework.org/spring/docs/4.3.x/javadoc-api) result 301).
* http://github.com/SpringSource/spring-hateoas with 1 occurrences migrated to:
  https://github.com/SpringSource/spring-hateoas ([https](https://github.com/SpringSource/spring-hateoas) result 301).
* http://www.spring.io with 1 occurrences migrated to:
  https://www.spring.io ([https](https://www.spring.io) result 301).
* http://docs.oracle.com/javase/6/docs/api with 1 occurrences migrated to:
  https://docs.oracle.com/javase/6/docs/api ([https](https://docs.oracle.com/javase/6/docs/api) result 302).
* http://repo.spring.io/libs-snapshot with 3 occurrences migrated to:
  https://repo.spring.io/libs-snapshot ([https](https://repo.spring.io/libs-snapshot) result 302).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 1 occurrences
2019-03-18 18:07:33 +01:00
Greg Turnquist
4faf3e18db #814 - Polishing. 2019-02-22 23:20:45 -06:00
Greg Turnquist
d247ffc5f5 #814 - Polishing. 2019-02-22 23:11:12 -06:00
Oliver Drotbohm
ad7420e5e6 #828 - Polishing.
Switched to javadoc:javadoc goal as we're not an aggregator project and can prevent the lifecycle restart from being triggered which caused plugins being bound to lifecycle phases before compile to be re-triggered.

Upgraded to Asciidoctor Maven Plugin 1.5.7.1. Removed custom CSS stylesheet for Javadoc as it doesn't look right with current Javadoc.
2019-02-21 09:49:08 +01:00
Greg Turnquist
3346005bf6 #828 - Backport modernized docs.
Original issue: #798.
2019-02-21 09:47:01 +01:00
Oliver Drotbohm
77392de587 #749 - Polishing.
Significant rewrite of the code contributed in the previous commit. Made all caches static and extracted all UriComponentsBuilder lookup and caching code into a package protected UriComponentsBuilderFactory.
2019-02-20 18:58:35 +01:00
Michal Stochmialek
a5f2b602fb #749 - More exhaustive caching of mappings, UriTemplates and base URIs.
We now cache the UriTemplates created for request mappings to avoid repeated parsing of the input string. We also cache the base URI within the RequestAttributes for a particular request.
2019-02-20 18:47:23 +01:00
Greg Turnquist
8c65f4b349 #814 - Make releases from Concourse for 0.25.x.
Related to #815.
2019-02-19 12:38:50 -06:00
Spring Buildmaster
197290bc5a #810 - Prepare next development iteration. 2019-02-12 22:04:25 +00:00
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