Commit Graph

185 Commits

Author SHA1 Message Date
Oliver Drotbohm
8af96d9277 #1013 - Upgrade to JUnit 5.5. 2019-07-01 10:27:25 +02:00
Oliver Drotbohm
3b65aea8a5 #1006 - Upgrade Asciidoctor Maven plugin dependencies. 2019-06-27 13:33:17 +02:00
Oliver Drotbohm
ceb406ae38 #979 - HAL Forms prompts can now be configured via a resource bundle.
We now support defining the prompts to be used for properties via the Spring HATEOAS rest-messages resource bundle. We support global definitions via $propertyName._prompt as well as qualified ones ($packageName.)$typeName.$propertyName._prompt.
2019-06-26 23:28:13 +02:00
Spring Buildmaster
cd5232ae08 #1002 - Prepare next development iteration. 2019-06-13 23:12:11 +00:00
Spring Buildmaster
0c831f0724 #1002 - Release version 1.0.0.M3. 2019-06-13 23:12:08 +00:00
Oliver Drotbohm
ef6889a148 #888 - Upgrade to Spring Plugin 2.0 M2. 2019-06-14 00:39:13 +02:00
Oliver Drotbohm
6fcfed3d66 #1001 - Upgrade to Reactor Dysprosium M2. 2019-06-14 00:24:29 +02:00
Oliver Drotbohm
6e3bbe851f #1000 - Upgrade to Spring Framework 5.0 M3. 2019-06-14 00:24:23 +02:00
Greg Turnquist
b2e327d1d2 #999 - Introduce Jenkins CI. 2019-06-07 16:28:10 -05:00
Oliver Drotbohm
c12ed413da #997 - Upgrade to Jackson 2.9.9. 2019-06-05 19:45:09 +02:00
Oliver Drotbohm
a81c07723c #990 - Fixed deployment of Javadoc and reference docs.
Javadoc is now generated into target/site/api. We now don't attach the zipped resources anymore but rather use the Wagon plugin to upload the content of target/site directly as what's generated into the folder already matches the expected folder structure.

We now consistently use ${project.reporting.outputDirectory} to refer to what defaults to target/site.

Goal to deploy static resources is: mvn clean deploy -DskipTests -Pdistribute.
2019-05-13 23:50:09 +02:00
Spring Buildmaster
472998ef40 #988 - Prepare next development iteration. 2019-05-13 08:38:11 +00:00
Spring Buildmaster
8f03484a30 #988 - Release version 1.0.0.M2. 2019-05-13 08:38:07 +00:00
Oliver Drotbohm
bbea16fb11 #988 - Update dependencies and changelog.
Jayway JSONPath 2.2.0 -> 2.4.0
JUnit 5.4.1 -> 5.4.2
Slf4j 1.7.25 -> 1.7.26
Kotlin 1.3.21 -> 1.3.31

Removed obsolete version declarations for JSR-305 and Minidev JSON. Some nullability guards in ChangelogCreator.
2019-05-13 10:23:26 +02:00
Oliver Drotbohm
016fc21df5 #919 - Upgrade to Spring Framework 5.2 M2.
Upgraded to Reactor Dysprosium M1 as well.
2019-05-09 22:11:24 +02:00
Oliver Drotbohm
a5014c72d5 #919 - Upgrade to Spring Framework and Reactor snapshots. 2019-05-08 18:59:21 +02:00
Greg Turnquist
8859e8493d #985 - Stabilize on Spring Framework 5.2.0.M1.
Pin things on stable milestones while introducing a profile to test snapshots. Pipeline updated to build against milestones and snapshots.
2019-04-17 10:21:36 -05:00
Greg Turnquist
950a3a73db #980 - Reduce test visibility. 2019-04-15 09:44:58 -05:00
Jens Schauder
13466eb1c7 #980 - Polishing.
Moved to latest JUnit version.
Limited assertions of exceptions to one method call.
2019-04-15 10:30:36 +02:00
Greg Turnquist
3a8b37b42a #980 - Migrate to JUnit 5. 2019-04-08 11:50:51 -05:00
Oliver Drotbohm
c7edf0c655 #919 - Upgrade to Spring 5.2 snapshots.
Removed build steps for Spring 5.1 snapshots and 5.2 ones as that's the default version we build against anyway.
2019-03-22 14:10:49 +01:00
Spring Operator
3a5c2739e3 #889 - 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.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 1 occurrences
2019-03-21 16:19:58 +01:00
Oliver Drotbohm
75ad0988cd #831 - Polishing.
Significant rework of the nullability annotation introduction to not produce any warnings anymore. Added nullability annotations where still missing. Removed the ones that were added erroneously.

Tightened nullability contracts in a couple of places, most prominently LinkRelationProvider, that now uses a LookupContext as plugin delimiter so that implementations can selectively be looked up for item or collection link relation lookup.

Removed obsolete declaration of Findbugs dependency.
2019-03-20 00:15:35 +01:00
Oliver Drotbohm
fdee61fde7 #888 - Upgrade to Spring Plugin 2.0 snapshots. 2019-03-19 23:41:41 +01:00
Greg Turnquist
40250d1738 #831 - Introduce null handling. 2019-03-08 13:21:21 -06:00
Spring Operator
c4e1bedec8 #855 - 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 fixed successfully.

* http://www.apache.org/licenses/LICENSE-2.0 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/5.1.x/javadoc-api (301) migrated to:
  https://docs.spring.io/spring/docs/5.1.x/javadoc-api ([https](https://static.springframework.org/spring/docs/5.1.x/javadoc-api) result 301).
* http://github.com/SpringSource/spring-hateoas migrated to:
  https://github.com/SpringSource/spring-hateoas ([https](https://github.com/SpringSource/spring-hateoas) result 301).
* http://www.spring.io migrated to:
  https://www.spring.io ([https](https://www.spring.io) result 301).
* http://docs.oracle.com/javase/8/docs/api migrated to:
  https://docs.oracle.com/javase/8/docs/api ([https](https://docs.oracle.com/javase/8/docs/api) result 302).
* http://repo.spring.io/libs-snapshot 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
* http://maven.apache.org/xsd/maven-4.0.0.xsd
* http://www.w3.org/2001/XMLSchema-instance
2019-03-08 09:32:07 -06:00
Greg Turnquist
3d9d857807 #853 - Continue development on 1.0.0.BUILD-SNAPSHOT. 2019-03-05 10:12:49 -06:00
Greg Turnquist
221be94134 #853 - Releasing Spring HATEOAS 1.0.0.M1. 2019-03-05 10:12:46 -06:00
Oliver Drotbohm
248a0e0f9f #850 - Upgrade to Spring Plugin 2.0 M1. 2019-03-04 16:46:43 +01:00
Greg Turnquist
6c34f2185e #837 - Fix src/docs/resources configuration 2019-03-03 12:48:48 -06:00
Greg Turnquist
3069543b8f #837 - Add more media types.
Introduce `src/docs/resources` and add `{resource-dir}` as an asciidoctor variable.

Add content for HAL-FORMS, Collection+JSON, and UBER.
2019-03-03 12:34:43 -06:00
Oliver Drotbohm
0cbe2d8544 #837 - POM cleanups.
Removed duplicate declaration of the deploy plugin.

Switched to the prepare-package phase for the documentation generation as the declaration of the Maven Build Helper Plugin caused the unpacking of the dependencies to be delayed to after the asciidoctor execution which then renders the CSS and JavaScript files missing.

Extracted the JavaDoc generation settings into the plugin management section so that both the CI build as well as the one creating the JavaDoc for the site deployment use the same setup. Removed the JavaDoc declaration from the default build and activate it in the testing build.

Removed inclusion of Spring Data static resources as they're superseded by the docs resources.
2019-03-03 16:55:04 +01:00
Oliver Drotbohm
8ddca10ed3 #837 - Moved sample code for fundamentals into test cases. 2019-03-03 16:55:04 +01:00
Oliver Drotbohm
70a072244c #837 - Improve doc generation to only render index file. 2019-03-03 16:55:04 +01:00
Greg Turnquist
fde1ef1099 #837 - Fix code references. 2019-03-01 19:20:36 -06:00
Greg Turnquist
fbfccfb93e #837 - Polishing. 2019-03-01 18:13:47 -06:00
Greg Turnquist
2ec1bb73aa #837 - Add section on affordances. 2019-03-01 18:10:47 -06:00
Oliver Drotbohm
20606fef46 #837 - First chunk of improvements to reference documentation.
Introduced new structure to reference docs that reflects the new library structure. Completely rewrote the Fundamentals section. Adapted to all type renames in the codebase. Fixed anchors in migration chapter.

Integrated PlantUML plugin for Asciidoctor generation to generate diagrams.
2019-03-01 15:56:44 +01:00
Oliver Drotbohm
a89e57eed7 #833 - Changed ResourceSupport class name hierarchy. 2019-02-27 20:04:15 +01:00
Greg Turnquist
9c684c0060 #815 - Test against Spring Framework 5.1/5.2 snapshots. 2019-02-21 11:24:02 -06:00
Oliver Drotbohm
82efbfb6aa #798 - Polishing.
Removed inclusion of broken stylesheet CSS.
2019-02-21 16:52:47 +01:00
Greg Turnquist
3f0dcc7cb4 #728 - Add support for Spring WebFlux.
* Render hypermedia from WebFlux controllers.
* Support consuming hypermedia through WebClient.
* Support link creation reactively with a custom filter and explicitly with a user-provided ServerWebExchange.
* Add a ReactiveResourceAssembler and SimpleReactiveResourceAssembler.
* Upgrade to Spring Framework 5.2 to align with Spring Data Moore, removing specialized Forwarded header handling.
2019-02-21 12:27:51 +01:00
Oliver Drotbohm
0ec193fa26 #798 - 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.
2019-02-21 09:52:38 +01:00
Oliver Drotbohm
9131a82b90 #808 - Removed build setup after Spring 5.1 upgrade. 2019-02-15 11:46:46 +01:00
Oliver Drotbohm
9e5db1874e #812 - General overhaul and refactorings.
Cleanups in Affordance API and implementations of hypermedia type (de)serializers. Added a lot more domain methods and types to Link, ResourceSupport etc. to be able to move a lot of representation building logic into those.

AffordanceModelFactory is not a Spring Plugin anymore as that functionality is not needed currently as we statically look up all factories via the SpringFactoriesLoader mechanism.

Redesigned LinkRelation to become a first class abstraction in the codebase. IanaLinkRelations is now a collection of constants. Link now keeps a LinkRelation instance around instead of a plain String.

Tweaked LinkDiscoverer API to return Optional and Links instead of nullable Link and List<Link>.

Tweaked API of CurieProvider to make use of the newly introduced HalLinkRelation based on the general LinkRelation.

Additional fixes for the Kotlin extension functions. Make Kotlin build setup compile with JDK 8. Removed Objects helper class in favor of Spring's already existing Assert and it's usage in ResourceAssemblerSupport.
2019-02-15 10:57:23 +01:00
Oliver Drotbohm
ee12040f10 #813 - Upgrade to Kotlin 1.3.21. 2019-02-14 19:20:35 +01:00
Oliver Drotbohm
eb78f47e4f #808 - Upgrade to Spring Framework 5.1.5. 2019-02-14 19:20:17 +01:00
Oliver Drotbohm
aca2cc578a #806 - Fixed package cycle between hateoas and hateoas.core packages.
Moved AffordanceModelFactory to the library's root package. Moved Kotlin extensions to hateoas.mvc package.

Added an ArchUnit based test for package cycles.
2019-02-11 14:57:25 +01:00
Jay Bryant
a483daab6d #798 - Modernize documentation production and appearance.
Applied new convention standard for generating documentation using spring-doc-resources.
2019-02-06 10:26:48 -06:00
Oliver Drotbohm
c16ac486e4 #792 - Upgrade to Jackson 2.9.8. 2019-01-29 16:51:34 +01:00