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

Commit

Permalink
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 committed Aug 29, 2024
1 parent 0153ab4 commit 9833f07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,12 @@
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-legacy</artifactId>
<version>${version.org.mongodb.mongo-java-driver}</version>
<exclusions>
<exclusion>
<artifactId>bson-record-codec</artifactId>
<groupId>org.mongodb</groupId>
</exclusion>
</exclusions>
</dependency>

<!-- Neo4j -->
Expand Down
6 changes: 6 additions & 0 deletions mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-legacy</artifactId>
<exclusions>
<exclusion>
<artifactId>bson-record-codec</artifactId>
<groupId>org.mongodb</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.parboiled</groupId>
Expand Down

0 comments on commit 9833f07

Please sign in to comment.