Skip to content

Commit 73889f9

Browse files
committed
Generate a Versions file to be consumed at runtime
1 parent 1287756 commit 73889f9

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

operator-framework-core/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@
4747
<commitIdGenerationMode>full</commitIdGenerationMode>
4848
</configuration>
4949
</plugin>
50+
<plugin>
51+
<groupId>org.codehaus.mojo</groupId>
52+
<artifactId>templating-maven-plugin</artifactId>
53+
<version>1.0.0</version>
54+
<executions>
55+
<execution>
56+
<id>filtering-java-templates</id>
57+
<goals>
58+
<goal>filter-sources</goal>
59+
</goals>
60+
</execution>
61+
</executions>
62+
</plugin>
5063
</plugins>
5164
</build>
5265

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package io.javaoperatorsdk.operator;
2+
3+
public final class Versions {
4+
5+
public static final String JOSDK = "${project.version}";
6+
public static final String KUBERNETES_CLIENT = "${fabric8-client.version}";
7+
8+
}

0 commit comments

Comments
 (0)