Skip to content

Condense overrideable options in Context to ContextConfiguration immutable#1195

Merged
jasmith-hs merged 3 commits intomasterfrom
context-configuration
Sep 9, 2024
Merged

Condense overrideable options in Context to ContextConfiguration immutable#1195
jasmith-hs merged 3 commits intomasterfrom
context-configuration

Conversation

@jasmith-hs
Copy link
Copy Markdown
Contributor

The overrideable flags within Context are getting a bit out of hand so I'm grouping these with an immutable class ContextConfiguration. I'm planning on adding a new flag in a coming PR and having Context directly have so many responsibilities is somewhat off-putting

Base automatically changed from basepom-59-11 to master September 4, 2024 14:06
Comment thread pom.xml

<dep.plugin.jacoco.version>0.8.3</dep.plugin.jacoco.version>
<dep.plugin.javadoc.version>3.0.1</dep.plugin.javadoc.version>
<dep.hubspot-immutables.version>1.9</dep.hubspot-immutables.version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure about adding immutables into this. In the past, non-HS users have disliked any other dependencies as it makes it difficult to manage version conflicts. You could manually create a builder object for this instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since this is just a provided dependency and we don't need it at runtime, there's should be no potential for that kind of problem. It's not going to be included in the final jar since it's just used for compiling.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good point.

@jasmith-hs jasmith-hs force-pushed the context-configuration branch from 6466733 to 593ff86 Compare September 7, 2024 00:40
@jasmith-hs jasmith-hs merged commit f13f7ae into master Sep 9, 2024
@jasmith-hs jasmith-hs deleted the context-configuration branch September 9, 2024 14:22
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