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) Fix resolution of baseDir in site-integration #969

Conversation

abelsromero
Copy link
Member

@abelsromero abelsromero commented Nov 1, 2024

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?

The calculation now takes into consideration locale and siteDirectory correctly. All of this when user does not explicitly sets baseDir in the

Are there any alternative ways to implement this?

For better compatibility with older maven-site plugin we could have tried some reflection to "guess" the version, but this adds "IMO" unnecessary complexity. Users should be incentivized to upgrade.

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

  1. This is done for conventions in maven-site v3.20.+
    Users with older versions should upgrade or avoid using locales. As a workaround, multiple executions with siteDirectory can be configured.
  2. Currently we support setting 1 locale, when more than one are present, the first one will be used since the Doxia parent component does not report which one is in use 🤷

Is it related to an existing issue?

  • Yes
  • No

Finally, please add a corresponding entry to CHANGELOG.adoc

Fixes #968

@abelsromero abelsromero added the bug label Nov 1, 2024
@abelsromero abelsromero added this to the 3.1.1 milestone Nov 1, 2024
@abelsromero abelsromero force-pushed the branch-main/issue-968/fix-maven-site-includes-with-locales branch from a134c8b to 8b1e904 Compare November 1, 2024 23:55
Calculation now takes into consideration locale and siteDirectory
correctly.
@abelsromero abelsromero force-pushed the branch-main/issue-968/fix-maven-site-includes-with-locales branch from 1f332e7 to eaa7d4b Compare November 2, 2024 09:37
@abelsromero abelsromero force-pushed the branch-main/issue-968/fix-maven-site-includes-with-locales branch from eaa7d4b to 507361f Compare November 2, 2024 14:30
@abelsromero abelsromero changed the title (main) Fix calculation of baseDir in site-integration (main) Fix resolution of baseDir in site-integration Nov 2, 2024
@abelsromero abelsromero merged commit 9fb3794 into asciidoctor:main Nov 2, 2024
20 checks passed
abelsromero added a commit that referenced this pull request Nov 2, 2024
* Resolution now takes into consideration locale and siteDirectory
correctly.
* Add a warning message when multiple locales are found

Fixes #968
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.

Includes fail when setting a local in maven-site v3.20.+
1 participant