Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
OGM-1588 Add bson-record-codec exclusion
Browse files Browse the repository at this point in the history
The bson-record-codec module is not needed for hibernate-ogm, and needs to be excluded at
least for tests because the class files in that module are compiled for Java 17 (the
minimum LTS release required for record support).
  • Loading branch information
jyemin authored and DavideD committed Sep 3, 2024
1 parent 5863b4a commit d655d5f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,17 @@
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-legacy</artifactId>
<version>${version.org.mongodb.mongo-java-driver}</version>
<exclusions>
<!--
The bson-record-codec module is not needed for hibernate-ogm, and needs to be excluded at
least for tests because the class files in that module are compiled for Java 17 (the
minimum LTS release required for record support).
-->
<exclusion>
<artifactId>bson-record-codec</artifactId>
<groupId>org.mongodb</groupId>
</exclusion>
</exclusions>
</dependency>

<!-- Neo4j -->
Expand Down
11 changes: 11 additions & 0 deletions mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-legacy</artifactId>
<exclusions>
<!--
The bson-record-codec module is not needed for hibernate-ogm, and needs to be excluded at
least for tests because the class files in that module are compiled for Java 17 (the
minimum LTS release required for record support).
-->
<exclusion>
<artifactId>bson-record-codec</artifactId>
<groupId>org.mongodb</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.parboiled</groupId>
Expand Down

0 comments on commit d655d5f

Please sign in to comment.