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

Merged
merged 6 commits into from
Sep 13, 2024

Conversation

SergeDemoulinGebit
Copy link
Contributor

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
Contributor 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
Contributor 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
Contributor Author

right. I learnt it afterall

@cpfeiffer
Copy link

The requested changes should be handled AFAICS. Anything else what should be done?

@cpfeiffer
Copy link

Kind request -- can we move forward with this?

@slawekjaranowski slawekjaranowski merged commit e386ef7 into mojohaus:master Sep 13, 2024
@slawekjaranowski
Copy link
Member

@SergeDemoulinGebit thanks

@cpfeiffer
Copy link

Awesome, thank you so much!

@SergeDemoulinGebit
Copy link
Contributor Author

SergeDemoulinGebit commented Sep 16, 2024 via email

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