You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "andreaTP (via GitHub)" <gi...@apache.org> on 2023/11/27 15:06:10 UTC

[PR] [java] Add sundrio to generate builders [camel-k]

andreaTP opened a new pull request, #4931:
URL: https://github.com/apache/camel-k/pull/4931

   Add `sundrio` to generate builder pattern for the model classes of the generated CRD.
   
   With the upcoming version of `kubernetes-client-bom-with-deps` we should be able to remove the explicit versions of `sundrio` and `lombok` too.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [java] Add sundrio to generate builders [camel-k]

Posted by "andreaTP (via GitHub)" <gi...@apache.org>.
andreaTP commented on PR #4931:
URL: https://github.com/apache/camel-k/pull/4931#issuecomment-1829467812

   @oscerd and @squakez I'm not sure about those last comments, both `lombok` and `sundrio` are marked as "provided".
   
   This means that they will be available on the classpath only during compilation and they are not going to be considered transitive dependencies of the resulting artifact.
   
   > remove lombok even if it's only a runtime dependency.
   
   It's not a runtime dependency and we can't remove it to get the generated builder pattern.
   
   > remind to remove the dependencies in the future when no longer necessary
   
   Just to be clear, the only thing I will change over the current configuration is the removal of the explicit `sundrio` and `lombok` version and relevant "property".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [java] Add sundrio to generate builders [camel-k]

Posted by "claudio4j (via GitHub)" <gi...@apache.org>.
claudio4j commented on PR #4931:
URL: https://github.com/apache/camel-k/pull/4931#issuecomment-1828082145

   @andreaTP what would be the use case to manipulate Camel K k8s objects ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [java] Add sundrio to generate builders [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on PR #4931:
URL: https://github.com/apache/camel-k/pull/4931#issuecomment-1829233683

   Okey. Maybe, given that this is an auto generated project where user is not meant to manually compile it, we can accept it. @oscerd wdyt?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [java] Add sundrio to generate builders [camel-k]

Posted by "andreaTP (via GitHub)" <gi...@apache.org>.
andreaTP commented on PR #4931:
URL: https://github.com/apache/camel-k/pull/4931#issuecomment-1828499509

   @squakez in this case both Lombok and Sundrio are used only at compile time and are not transitive dependencies for the user.
   
   @claudio4j :
   @lburgazzoli asked to have builder pattern on the models and, as far as it works it's a much nicer user experience.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [java] Add sundrio to generate builders [camel-k]

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on PR #4931:
URL: https://github.com/apache/camel-k/pull/4931#issuecomment-1829478968

   Our idea is to avoid Lombok as much as we can. Since this is a separated context for generating stuff, that's fine, but we would like to avoid the spreading of Lombok around the codebase. It's provided and that's fine.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [java] Add sundrio to generate builders [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on PR #4931:
URL: https://github.com/apache/camel-k/pull/4931#issuecomment-1829367399

   @andreaTP please, remind to remove the dependencies in the future when no longer necessary. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [java] Add sundrio to generate builders [camel-k]

Posted by "andreaTP (via GitHub)" <gi...@apache.org>.
andreaTP commented on PR #4931:
URL: https://github.com/apache/camel-k/pull/4931#issuecomment-1829501316

   agreed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [java] Add sundrio to generate builders [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez merged PR #4931:
URL: https://github.com/apache/camel-k/pull/4931


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org