Skip to content

Commit

Permalink
HSEARCH-4768 Fix JavaModulePathTest with ORM 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Feb 1, 2023
1 parent 39490ba commit 1c1a2b2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Expand Up @@ -44,6 +44,14 @@
<artifactId>hibernate-search-mapper-orm-coordination-outbox-polling</artifactId>
</dependency>

<!-- Adding this dependency to be able to refer to ByteBuddy in module-info.java -->
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<!-- DO NOT REMOVE and DO NOT MANAGE the version of this dependency. See the version property declaration. -->
<version>${version.net.bytebuddy}</version>
</dependency>

<dependency>
<groupId>org.hibernate.search</groupId>
<artifactId>hibernate-search-util-internal-test-orm</artifactId>
Expand Down
Expand Up @@ -29,4 +29,10 @@
* Without this, compilation as a Java module fails.
*/
requires java.naming;

/*
* This is necessary in order to put ByteBuddy in the modulepath and make module exports effective.
* I do not know why ByteBuddy doesn't end up in the modulepath without this.
*/
requires net.bytebuddy;
}

0 comments on commit 1c1a2b2

Please sign in to comment.