-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move all CRD-related annotations (java-2-crd / crd-2-java) to a single package #5429
Comments
@manusa thanks for filing this issue, there is a rationale behind the current split:
More specifically:
|
They can be in a different package, but they should both be in the generator-annotations module. If you don't know to scope crd-generator-api as provided, you'll end with extra stuff in your runtime classpath. |
The The rationale behind the current separation is that:
That said, if there is a general consensus to move everything to one sub-module I won't oppose it.
|
Documentation would be nice. But also consider the annotations are marked as runtime retention. In theory a user could expect to reflectively make decisions based upon them if they include the dependency at the compile scope - but again would need to exclude the unnecessary transitive dependencies.
Only if they are repackaged. Just moving them to a different jar, that is likely already included in the classpath shouldn't be a problem. |
I'm not sure we really want this to happen anytime soon.
Here I disagree, moving to a different artifact IS a breaking change, If there are no compelling reasons to rush this I strongly suggest going through the 2 cycles. |
Under what scenario would someone have a depedency, either provided or compile, on crd-generator-api and specifically exclude the generator-annoations transitive dependency? That seems quite unlikely.
That will require a repacking. Due to java module restrictions we don't want split packages. |
We can discuss this internally on this week's sync meeting. |
Description
Ensure that all of the annotations on which the CRD-2-java and java-2-CRD modules rely on are on a single API package.
crd-generator-api
generator-annotations
The text was updated successfully, but these errors were encountered: