From e882a4d73ef453d2dc956920eaa227818c084fe0 Mon Sep 17 00:00:00 2001 From: filoghost Date: Sat, 25 Apr 2020 11:28:01 +0200 Subject: [PATCH] Add build number to plugin version on development builds --- Plugin/pom.xml | 30 ++++++++++++++++++++++++++++ Plugin/src/main/resources/plugin.yml | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/Plugin/pom.xml b/Plugin/pom.xml index 1d125ba1..5cfa0453 100644 --- a/Plugin/pom.xml +++ b/Plugin/pom.xml @@ -168,6 +168,33 @@ + + org.apache.maven.plugins + maven-antrun-plugin + 3.0.0 + + + + set-plugin-version + validate + + run + + + true + + + + + + + + + + + + + org.apache.maven.plugins maven-jar-plugin @@ -177,6 +204,9 @@ true + + ${project.pluginVersion} + diff --git a/Plugin/src/main/resources/plugin.yml b/Plugin/src/main/resources/plugin.yml index 252f4053..ed488c4a 100644 --- a/Plugin/src/main/resources/plugin.yml +++ b/Plugin/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: HolographicDisplays main: com.gmail.filoghost.holographicdisplays.HolographicDisplays author: filoghost -version: ${project.version} +version: ${project.pluginVersion} api-version: 1.13 softdepend: [ProtocolLib]