nielsbasjes commented on a change in pull request #11592:
[FLINK-16871][runtime] Make more build time information available at runtime
URL: https://github.com/apache/flink/pull/11592#discussion_r405318139
##########
File path: flink-runtime/pom.xml
##########
@@ -402,6 +402,38 @@ under the License.
</configuration>
</plugin>
+ <plugin>
+
<groupId>com.google.code.maven-replacer-plugin</groupId>
+ <artifactId>replacer</artifactId>
+ <version>1.5.3</version>
+ <executions>
+ <execution>
+ <id>Generate Version Java</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>replace</goal>
+ </goals>
+ <configuration>
+
<file>${basedir}/src/main/code-gen/version/Version.java.template</file>
+
<outputFile>${basedir}/target/generated-sources/java/org/apache/flink/version/Version.java</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ <configuration>
+ <replacements>
+
<replacement><token>@project.version@</token><value>${project.version}</value></replacement>
+
<replacement><token>@scala.version@</token><value>${scala.binary.version}</value></replacement>
+
+
<replacement><token>@git.build.time@</token><value>${git.build.time}</value></replacement>
+
<replacement><token>@git.build.version@</token><value>${git.build.version}</value></replacement>
Review comment:
I'll remove the ones that are not used.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services