Skip to content

Commit a49b6b6

Browse files
committed
add version in logs
Signed-off-by: Etienne LESOT <[email protected]>
1 parent b58f177 commit a49b6b6

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@
6464
<groupId>org.apache.maven.plugins</groupId>
6565
<artifactId>maven-failsafe-plugin</artifactId>
6666
</plugin>
67+
<plugin>
68+
<groupId>org.codehaus.mojo</groupId>
69+
<artifactId>templating-maven-plugin</artifactId>
70+
</plugin>
71+
<plugin>
72+
<groupId>org.codehaus.mojo</groupId>
73+
<artifactId>buildnumber-maven-plugin</artifactId>
74+
</plugin>
6775
</plugins>
6876
</build>
6977

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Copyright (c) 2021, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
package org.gridsuite.filter;
8+
9+
import com.google.auto.service.AutoService;
10+
import com.powsybl.tools.AbstractVersion;
11+
import com.powsybl.tools.Version;
12+
13+
/**
14+
* @author Etienne Lesot <etienne.lesot at rte-france.com>
15+
*/
16+
@AutoService(Version.class)
17+
public class FilterVersion extends AbstractVersion {
18+
19+
public FilterVersion() {
20+
super("filter", "${project.version}", "${buildNumber}", "${scmBranch}", Long.parseLong("${timestamp}"));
21+
}
22+
}

0 commit comments

Comments
 (0)