-
Notifications
You must be signed in to change notification settings - Fork 519
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
GH-480: Bring back POM revision
property
#481
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.springframework.retry</groupId> | ||
<artifactId>spring-retry</artifactId> | ||
<version>2.0.12-SNAPSHOT</version> | ||
<version>${revision}</version> | ||
<name>Spring Retry</name> | ||
<description><![CDATA[ | ||
Spring Retry provides an abstraction around retrying failed operations, with an | ||
|
@@ -26,6 +26,7 @@ | |
</license> | ||
</licenses> | ||
<properties> | ||
<revision>2.0.12-SNAPSHOT</revision> | ||
<disable.checks>false</disable.checks> | ||
<java.version>17</java.version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
|
@@ -302,6 +303,31 @@ | |
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>flatten-maven-plugin</artifactId> | ||
<version>1.6.0</version> | ||
<configuration> | ||
<outputDirectory>${project.build.directory}</outputDirectory> | ||
<flattenMode>oss</flattenMode> | ||
artembilan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>flatten</id> | ||
<phase>process-resources</phase> | ||
<goals> | ||
<goal>flatten</goal> | ||
</goals> | ||
</execution> | ||
<execution> | ||
<id>flatten.clean</id> | ||
<phase>clean</phase> | ||
<goals> | ||
<goal>clean</goal> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The clean goal does not need the configuration about flatten mode and the rest of it. Given it is specific to the flatten goal, it should be moved there for consistency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what you mean, but indeed don’t need |
||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need that because the file is stored into a
target
directory which is already under ignore.I don't see any argument why this file has to be in the root project dir when we are interested in it only at runtime on
install
ordeploy
, so that is indeed a volatile entity for project build lifecycle and that is totally enough to have it in thetarget
alongside with the rest of artifacts to deliver.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do that, you don't need
clean
then. Again, if you decide to do things differently, please do that consistently.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. That’s what I did in the last commit. Please, double check the latest change set in the PR