Across 5.4.0 Release notes
By Davy
The main change in Across 5.4 is the upgrade from Spring Boot 2.4 to 2.6. This required no changes in the Across code itself, only a few minor changes in tests. If you are on Across 5.2 or 5.3, it should be almost trivial to upgrade.
Note that Spring Boot 2.5 is the first version to support Java 17, so it should finally be possible to upgrade, but this hasn’t been tested at this moment. FYI, all Across 5.x releases are still built with Java 8.
Upgrades
Most important upgrades (compared to 5.3.0):
-
Spring Boot: from 2.4.13 to 2.6.15:
-
Spring Framework: from 5.3.30 to 5.3.31
-
Spring Security: from 5.4.9 to 5.6.12:
- https://docs.spring.io/spring-security/site/docs/5.5.x/reference/html5/#new
- https://docs.spring.io/spring-security/reference/5.6-SNAPSHOT/whats-new.html (the actual release notes link in the announcement is broken; this is the best I could find).
-
QueryDSL: from 4.4.0 to 5.0.0: https://github.com/querydsl/querydsl/releases/tag/QUERYDSL_5_0_0
-
Hibernate: from 5.4.32 to 5.6.15:
-
Jackson: from 2.11.4 to 2.13.5:
-
Mockito: from 3.6.28 to 4.0.0: https://github.com/mockito/mockito/releases/tag/v4.0.0
Across Framework/Modules/Platform Versions
across-framework: 5.4.0
across-autoconfigure: 2.4.0
across-base-modules: 4.4.0
across-entity-admin-modules: 4.4.0
across-user-auth-modules: 4.4.0
across-media-modules: 6.4.0
across-platform: 5.4.0
Code changes
Spring Boot 2.6 required an NPE fix in across-web
, but that fix
was already included in 5.2.2.
In the user-module
, many services have a new findBy
method,
because the
org.springframework.data.querydsl.QuerydslPredicateExecutor
interface added that method.
In the main code, that’s all that was changed.
In the tests, the only code changes were adaptations for the upgrade
to Mockito 4: the deprecated method verifyZeroInteractions
has been
removed, and all calls had to be replaced with verifyNoInteractions
or verifyNoMoreInteractions
.
Configuration changes
The Maven coordinates for the Oracle JDBC driver have changed: See the Spring Boot 2.6 Release notes for details.
Since Spring Boot 2.6, circular bean references are prohibited by default. For all Across tests, this has been reverted back.
Idem for PathPattern Based Path Matching Strategy for Spring MVC.
Both options still exist in Spring Boot 3.2, so they shouldn’t cause a problem for the future upgrade to Spring Boot 3.
Removed features
Support for Solr
has been removed from entity-module
, because
Spring Data Solr has been
discontinued. Note that
in fact no changes were made to the main code of entity-module
itself: it’s just that the tests have been removed.
Thanks
Thanks to:
- Arno for testing a snapshot build with a client application.