diff --git a/pom.xml b/pom.xml index fb98a4b8..72f28606 100644 --- a/pom.xml +++ b/pom.xml @@ -65,6 +65,14 @@ org.apache.maven.plugins maven-failsafe-plugin + + org.codehaus.mojo + templating-maven-plugin + + + org.codehaus.mojo + buildnumber-maven-plugin + diff --git a/src/main/java-templates/org/gridsuite/modification/ModificationVersion.java b/src/main/java-templates/org/gridsuite/modification/ModificationVersion.java new file mode 100644 index 00000000..442f2aa8 --- /dev/null +++ b/src/main/java-templates/org/gridsuite/modification/ModificationVersion.java @@ -0,0 +1,22 @@ +/** + * Copyright (c) 2025, RTE (http://www.rte-france.com) + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +package org.gridsuite.modification; + +import com.google.auto.service.AutoService; +import com.powsybl.tools.AbstractVersion; +import com.powsybl.tools.Version; + +/** + * @author Etienne Lesot + */ +@AutoService(Version.class) +public class ModificationVersion extends AbstractVersion { + + public ModificationVersion() { + super("network-modification", "${project.version}", "${buildNumber}", "${scmBranch}", Long.parseLong("${timestamp}")); + } +} \ No newline at end of file