Skip to content
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

(main) Use Maven Eclipse Sisu to inject components #977

Conversation

abelsromero
Copy link
Member

@abelsromero abelsromero commented Nov 3, 2024

Thank you for opening a pull request and contributing to asciidoctor-maven-plugin!

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Documentation
  • Refactor
  • Build improvement
  • Other (please describe)

What is the goal of this pull request?

Use Eclipse Sisu for dependency injection to better organize code. We have been using manual instance creation and that's limiting how modular we can make the code (TLDR; it's easier to create static method helper classes or private methods than cohesive components).

This has already allowed some simple refactors (more to come), and reduce usage of reflection for testing.

Notes:

  • For now we pass Log to methods for simplicity. With Maven 4 that will be removed in favor of normal slf4j.

Are there any alternative ways to implement this?

Still experimenting.

Are there any implications of this pull request? Anything a user must know?

No, changes are transparent to users.

Is it related to an existing issue?

  • Yes
  • No

#945

@abelsromero abelsromero changed the title Refactor asciidoctor-maven-plugin (main) Use Maven Eclipse Sisu to inject components Nov 4, 2024
Use profile to allow to modify dependencies and properties in a central point
…return only '<asciidoc>' configuration always
@abelsromero abelsromero marked this pull request as ready for review November 10, 2024 09:20
@abelsromero abelsromero merged commit 7669152 into asciidoctor:main Nov 10, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant