From c81da242ef9b2f02c3affb79523c8a31da8f1505 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sat, 9 Jul 2022 11:31:20 +0200 Subject: [PATCH] Upgraded setversion.d to also run mvn clean test. --- client/pom.xml | 2 +- core/pom.xml | 2 +- pom.xml | 2 +- server/pom.xml | 2 +- setversion.d | 4 ++++ 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/client/pom.xml b/client/pom.xml index 6473851..6912333 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -5,7 +5,7 @@ ace-of-shades-2 nl.andrewl - 1.0-SNAPSHOT + 1.0.0 4.0.0 diff --git a/core/pom.xml b/core/pom.xml index a45f2f6..0e9a9bf 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,7 +5,7 @@ ace-of-shades-2 nl.andrewl - 1.0-SNAPSHOT + 1.0.0 4.0.0 diff --git a/pom.xml b/pom.xml index 324b911..85024e0 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ nl.andrewl ace-of-shades-2 pom - 1.0-SNAPSHOT + 1.0.0 core server diff --git a/server/pom.xml b/server/pom.xml index a2a44f9..de32168 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -5,7 +5,7 @@ ace-of-shades-2 nl.andrewl - 1.0-SNAPSHOT + 1.0.0 4.0.0 diff --git a/setversion.d b/setversion.d index 70fc9d0..326639c 100755 --- a/setversion.d +++ b/setversion.d @@ -10,6 +10,7 @@ module setversion; import std.stdio; import std.file : write, readText; +import std.process; void main() { string newVersion = getMainVersion(); @@ -20,6 +21,9 @@ void main() { write(pomFile, xml); writefln!"Updated %s to version %s"(pomFile, newVersion); } + writeln("Running mvn clean test on updated projects."); + auto pid = spawnShell("mvn clean test", stdin, stdout, stderr); + wait(pid); } string getMainVersion() {