Skip to content

Add module info for main artifacts#192

Draft
marko-bekhta wants to merge 2 commits intohibernate:mainfrom
marko-bekhta:feat/modules
Draft

Add module info for main artifacts#192
marko-bekhta wants to merge 2 commits intohibernate:mainfrom
marko-bekhta:feat/modules

Conversation

@marko-bekhta
Copy link
Member

Opening this one as a draft...

We've tested this with @dreab8 on Hibernate Search and it seems to work...
There are a few things we probably want to address before moving forward with this:

  • some of the internal packages are used by Hibernate ORM and by jandex/bytebuddy modules, so would be best if we move the needed APIs to some spi packages instead of exporting the internals to these modules
  • We've looked at a few plugins to generate module infos but those seem quite outdated and non-maintained and were failing for the recent Gradle versions.

cc: @yrodiere

marko-bekhta and others added 2 commits January 27, 2026 10:37
since it requires the java.desktop module, and actually might not be available.
Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Not much to say... I guess you'll be looking into automated testing in the modulepath next?

Comment on lines +9 to +10
// exports org.hibernate.models.bytebuddy.internal;
// exports org.hibernate.models.bytebuddy.internal.values;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the commented lines? Should this be an exports ... to org.hibernate.orm.core?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we used jdeps to generate the initial files. We commented out all internal packages, with the hope that we can just drop them, but as we were testing ... we started to add those exports to orm or other models modules,

so in short ... the idea was to keep all the packages for now while we test how things go with other projects 🫣 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants