Upgrade to Hibernate 6.

Introduce bytebuddy exclusions to avoid clashes with Mockito-provided byte buddy versions. Extend version range in Jackson Hibernate module registrar.

Closes #2158
This commit is contained in:
Mark Paluch
2022-07-13 08:54:26 +02:00
parent 07ebc501cd
commit 070d284e69
5 changed files with 26 additions and 6 deletions

View File

@@ -35,9 +35,16 @@
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core-jakarta</artifactId>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
<!-- Avoid conflicts with ByteBuddy brought by Mockito -->
<exclusions>
<exclusion>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>

View File

@@ -36,7 +36,7 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
<version>4.5.0</version>
<version>4.6.0</version>
</dependency>
<dependency>