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

Feature/extended interpolate #384

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

SergeDemoulinGebit
Copy link

new ElementHandling: "extended_interpolate"

  • Take the element from the interpolated POM, but resolve the variables with the properties from the effective POM.
  • Don't resolve the following variables "project.basedir", "project.baseUri", "project.build.directory", "project.build.outputDirectory", "project.build.sourceDirectory", "project.build.scriptSourceDirectory", "project.build.testSourceDirectory", "project.reporting.outputDirectory"
  • Interpolate the parent version

Optimization (only the used models are created)

@SergeDemoulinGebit
Copy link
Author

resolve #383 resolve #382

@slawekjaranowski
Copy link
Member

Please don't change line end and other whitespace

SergeDemoulinGebit added a commit to GEBIT/flatten-maven-plugin that referenced this pull request Mar 11, 2024
…ement from the interpolated POM, but resolve the variables with the properties from the effective POM. Don't resolve the following variables "project.basedir", "project.baseUri", "project.build.directory", "project.build.outputDirectory", "project.build.sourceDirectory", "project.build.scriptSourceDirectory", "project.build.testSourceDirectory", "project.reporting.outputDirectory" Interpolate the parent version optimization (only the used models are created)
@SergeDemoulinGebit
Copy link
Author

Hi
I fix the line ends now.
Sorry for the late answer, I did not see the comment. This feature is important for us and very useful.

I want to remove the dependency to guava. Please wait until I do that to make the review.

Best regards,
Serge

SergeDemoulinGebit added a commit to GEBIT/flatten-maven-plugin that referenced this pull request Mar 12, 2024
@kjq
Copy link

kjq commented Mar 24, 2024

This would be huge for us because we have a lot of properties in a parent that need to be interpolated in lower POMs.

@cpfeiffer
Copy link

Is there anything we can do to move this forward?

@slawekjaranowski
Copy link
Member

I added myself to review, I will try to do it in a few days - @SergeDemoulinGebit thanks for PR

@SergeDemoulinGebit
Copy link
Author

right. I learnt it afterall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improvement: don't interpolate project.basedir and project.baseUri interpolate properties from parent
4 participants