diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-07-01 17:40:20 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-07-01 20:08:54 +0300 |
commit | d6544de1d5320f864ab8f04c7aea15a1946b233a (patch) | |
tree | 24953f35fb12ac24cf34090cf3d6968bbd723854 /vid-app-common/pom.xml | |
parent | 6946c31e6ed8180295e60797d9af0845d6697efd (diff) |
Add maven-replacer-plugin to set value in version.json
Issue-ID: VID-507
Change-Id: Iab08d9da4352b159a4dce550188af973bd55edfc
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/pom.xml')
-rwxr-xr-x | vid-app-common/pom.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vid-app-common/pom.xml b/vid-app-common/pom.xml index d8c1a08df..6a48190bd 100755 --- a/vid-app-common/pom.xml +++ b/vid-app-common/pom.xml @@ -48,6 +48,9 @@ <eirslett.version>1.6</eirslett.version> <node.version>v6.16.0</node.version> + <!-- override using -Drelease_version=foo -Dpatch_version=bar --> + <release_version>${env.RELEASE_VERSION}</release_version> + <patch_version/> </properties> @@ -239,6 +242,30 @@ </plugin> <plugin> + <groupId>com.google.code.maven-replacer-plugin</groupId> + <artifactId>replacer</artifactId> + <version>1.5.3</version> + <executions> + <execution> + <phase>prepare-package</phase> + <goals> + <goal>replace</goal> + </goals> + </execution> + </executions> + <configuration> + <regex>false</regex> + <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file> + <replacements> + <replacement> + <token>BUILD_NUMBER</token> + <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value> + </replacement> + </replacements> + </configuration> + </plugin> + + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>${surefire.version}</version> |