Skip to content

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented Jul 16, 2025

Fixes #301

@Ladicek Ladicek added this to the 2.0.0.Beta2 milestone Jul 16, 2025
@Ladicek Ladicek added the 2.x Issue applies to Gizmo 2.x label Jul 16, 2025
Ladicek added 3 commits July 16, 2025 14:38
With the anticipation of adding a 2nd module, Jandex integration, this
commit turns Gizmo 2 into a multimodule Maven project. The main code
is now part of the `core` module, which retains the previous Maven
coordinates as well as the JPMS module name.

The top-level project is a Maven `pom` module which contains no code.
The `jandex` module is added which hosts the Jandex integration. It depends
on the `core` module (both in the Maven sense and in the JPMS sense) and
of course on Jandex.

The `Jandex2Gizmo` class contains `static` methods to create `ClassDesc`
(and other descriptors) from Jandex types (such as `DotName`, `Type` or
`ClassInfo`).

More methods will be coming in the future (notably, to create `GenericType`
from `Type` and to create annotation from `AnnotationInstance`).
@Ladicek Ladicek force-pushed the jandex-integration branch from f109c5f to e663b4b Compare July 16, 2025 12:39
@Ladicek Ladicek moved this to In Progress in WG - Gizmo 2 Jul 16, 2025
@dmlloyd
Copy link
Member

dmlloyd commented Jul 16, 2025

I don't like making this whole project a multi-module project for one class. Could Jandex not have one extra class and one optional dependency? Or, was there a problem with adding an optional dependency to Jandex that I'm not remembering?

@Ladicek
Copy link
Contributor Author

Ladicek commented Jul 16, 2025

I didn't even think of putting the Gizmo 2 integration into Jandex, but we can do that, sure. No problem with that.

@Ladicek
Copy link
Contributor Author

Ladicek commented Jul 16, 2025

BTW, you also wanted to maybe have a Gizmo "runtime", which would have to be another module in here I think?

@dmlloyd
Copy link
Member

dmlloyd commented Jul 16, 2025

Yeah that's possible for the future.

@Ladicek
Copy link
Contributor Author

Ladicek commented Jul 16, 2025

Well, OK then. I'll move this to Jandex (not to the core, I'll make a new module there).

@Ladicek Ladicek closed this Jul 16, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in WG - Gizmo 2 Jul 16, 2025
@Ladicek Ladicek deleted the jandex-integration branch July 16, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issue applies to Gizmo 2.x
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Jandex integration
2 participants