errors-spring-boot-starter icon indicating copy to clipboard operation
errors-spring-boot-starter copied to clipboard

Modularizing the Project

Open alimate opened this issue 5 years ago • 0 comments

Synopsis

Currently, we only support the 2.x.x versions of Spring Boot. Supporting multiple versions of Spring Boot in a single codebase seems complicated, since each major release may introduce conflicting and backward-incompatible changes.

Motivation

With a few simple changes, we should be able to support the 1.5.x but I couldn't find a way to pull this off, yet! Also, supporting future versions may get as complicated.

Recommended Solution

One solution is to modularize (not to be confused with JPMS) the project. That is, we can create:

  • A Core Module containing the basic and version agnostic abstractions like WebErrorHandler, FingerPrintProvider or HttpError.
  • One dedicated module for each Spring Boot version, e.g. 1.x.x, 2.x.x, etc.

alimate avatar Apr 11 '19 15:04 alimate