Replace hardcoded version tags by parsed version TINKERPOP-1897
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/e3c6ddeb Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/e3c6ddeb Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/e3c6ddeb Branch: refs/heads/tp33 Commit: e3c6ddeb30956ed661386b00889bb6e3e0b3c99f Parents: fd11517 Author: Florian Hockmann <f...@florian-hockmann.de> Authored: Sat May 19 11:27:57 2018 +0200 Committer: Florian Hockmann <f...@florian-hockmann.de> Committed: Mon Jun 4 15:57:29 2018 +0200 ---------------------------------------------------------------------- gremlin-console/pom.xml | 10 +++++----- gremlin-server/pom.xml | 10 +++++----- pom.xml | 6 ++++++ 3 files changed, 16 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e3c6ddeb/gremlin-console/pom.xml ---------------------------------------------------------------------- diff --git a/gremlin-console/pom.xml b/gremlin-console/pom.xml index db86d41..8e8b357 100644 --- a/gremlin-console/pom.xml +++ b/gremlin-console/pom.xml @@ -367,9 +367,9 @@ limitations under the License. <goals> <goal>tag</goal> </goals> - <configuration> - <tag>3.2</tag> - <skip>${only.when.is.snapshot.used}</skip> + <configuration> + <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}</tag> + <skip>${only.when.is.snapshot.used}</skip> </configuration> </execution> <execution> @@ -377,9 +377,9 @@ limitations under the License. <goals> <goal>push</goal> </goals> - <configuration> + <configuration> <skip>${only.when.is.snapshot.used}</skip> - </configuration> + </configuration> </execution> </executions> <configuration> http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e3c6ddeb/gremlin-server/pom.xml ---------------------------------------------------------------------- diff --git a/gremlin-server/pom.xml b/gremlin-server/pom.xml index ef2e609..b2c3435 100644 --- a/gremlin-server/pom.xml +++ b/gremlin-server/pom.xml @@ -275,9 +275,9 @@ limitations under the License. <goals> <goal>tag</goal> </goals> - <configuration> - <tag>3.2</tag> - <skip>${only.when.is.snapshot.used}</skip> + <configuration> + <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}</tag> + <skip>${only.when.is.snapshot.used}</skip> </configuration> </execution> <execution> @@ -285,9 +285,9 @@ limitations under the License. <goals> <goal>push</goal> </goals> - <configuration> + <configuration> <skip>${only.when.is.snapshot.used}</skip> - </configuration> + </configuration> </execution> </executions> <configuration> http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e3c6ddeb/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 9ff3f3a..398b931 100644 --- a/pom.xml +++ b/pom.xml @@ -285,6 +285,12 @@ limitations under the License. <failIfNoMatch>false</failIfNoMatch> </configuration> </execution> + <execution> + <id>parse-version</id> + <goals> + <goal>parse-version</goal> + </goals> + </execution> </executions> </plugin> <plugin>