You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/04/07 11:58:09 UTC

[GitHub] [flink] zentol commented on a change in pull request #11592: [FLINK-16871][runtime] Make more build time information available at runtime

zentol 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_r404748143
 
 

 ##########
 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:
   this isn't used anywhere?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services