From d4568b1ddfa0c5487b5d77c5823667771c6d2e85 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 27 Mar 2023 13:45:53 +0200
Subject: [PATCH] start development 1.8.0

---
 mail-service/pom.xml         |  6 ++--
 notification-manager/pom.xml |  6 ++--
 pluto-command/pom.xml        |  5 ++--
 pluto-interface/pom.xml      |  2 +-
 pluto-server/pom.xml         |  6 ++--
 pluto-utils/pom.xml          |  6 ++--
 pom.xml                      |  3 +-
 release-startdev.sh          | 58 ++++++++++++++++++++++++++++++++++++
 8 files changed, 75 insertions(+), 17 deletions(-)
 create mode 100755 release-startdev.sh

diff --git a/mail-service/pom.xml b/mail-service/pom.xml
index 834d16426..a76382e44 100644
--- a/mail-service/pom.xml
+++ b/mail-service/pom.xml
@@ -31,12 +31,12 @@
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-parent</artifactId>
 		<version>1.6.2</version>
-		<relativePath />
+		<relativePath/>
 	</parent>
 
 	<groupId>de.itvsh.ozg.mail</groupId>
 	<artifactId>mail-service</artifactId>
-	<version>1.7.0</version>
+	<version>1.8.0-SNAPSHOT</version>
 	<name>KOP Vorgang Manager Mail Service</name>
 
 	<properties>
@@ -296,4 +296,4 @@
 			<url>https://nexus.ozg-sh.de/repository/ozg-snapshots/</url>
 		</snapshotRepository>
 	</distributionManagement>
-</project>
\ No newline at end of file
+</project>
diff --git a/notification-manager/pom.xml b/notification-manager/pom.xml
index cf08bddb8..51dd026dc 100644
--- a/notification-manager/pom.xml
+++ b/notification-manager/pom.xml
@@ -30,14 +30,14 @@
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-parent</artifactId>
 		<version>1.6.2</version>
-		<relativePath />
+		<relativePath/>
 	</parent>
 
 	<groupId>de.itvsh.kop.notification</groupId>
 	<artifactId>notification-manager</artifactId>
 
 	<name>KOP Notification Manager</name>
-	<version>1.7.0</version>
+	<version>1.8.0-SNAPSHOT</version>
 
 	<properties>
 		<user-manager-interface.version>1.1.0</user-manager-interface.version>
@@ -158,4 +158,4 @@
 			</plugin>
 		</plugins>
 	</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/pluto-command/pom.xml b/pluto-command/pom.xml
index fda26ba05..392d97818 100644
--- a/pluto-command/pom.xml
+++ b/pluto-command/pom.xml
@@ -1,3 +1,4 @@
+<?xml version="1.0"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
 	<modelVersion>4.0.0</modelVersion>
 	<parent>
@@ -10,7 +11,7 @@
 	<groupId>de.itvsh.ozg.pluto</groupId>
 	<artifactId>pluto-command</artifactId>
 	<name>Command Manager</name>
-	<version>1.7.0</version>
+	<version>1.8.0-SNAPSHOT</version>
 	
 	<dependencies>
 		<dependency>
@@ -29,4 +30,4 @@
 			<optional>true</optional>
 		</dependency>
 	</dependencies>
-</project>
\ No newline at end of file
+</project>
diff --git a/pluto-interface/pom.xml b/pluto-interface/pom.xml
index 7fad2d086..b0c16bdda 100644
--- a/pluto-interface/pom.xml
+++ b/pluto-interface/pom.xml
@@ -36,7 +36,7 @@
 
 	<groupId>de.itvsh.ozg.pluto</groupId>
 	<artifactId>pluto-interface</artifactId>
-	<version>1.7.0</version>
+	<version>1.8.0-SNAPSHOT</version>
 
 	<name>KOP Vorgang Manager gRPC Interface</name>
 	<description>Interface (gRPC) for Pluto Server</description>
diff --git a/pluto-server/pom.xml b/pluto-server/pom.xml
index f95f43348..3bfd2ac0b 100644
--- a/pluto-server/pom.xml
+++ b/pluto-server/pom.xml
@@ -31,12 +31,12 @@
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-parent</artifactId>
 		<version>1.6.2</version>
-		<relativePath />
+		<relativePath/>
 	</parent>
 
 	<groupId>de.itvsh.ozg.pluto</groupId>
 	<artifactId>pluto-server</artifactId>
-	<version>1.7.0</version>
+	<version>1.8.0-SNAPSHOT</version>
 
 	<name>KOP Vorgang Manager (Pluto) Server</name>
 	<description>Server Implementierung des VorgangManagers (Pluto)</description>
@@ -378,4 +378,4 @@
 		</snapshotRepository>
 	</distributionManagement>
 
-</project>
\ No newline at end of file
+</project>
diff --git a/pluto-utils/pom.xml b/pluto-utils/pom.xml
index 06a98576b..00cd438f9 100644
--- a/pluto-utils/pom.xml
+++ b/pluto-utils/pom.xml
@@ -31,13 +31,13 @@
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-dependencies</artifactId>
 		<version>1.6.2</version>
-		<relativePath />
+		<relativePath/>
 	</parent>
 
 	<groupId>de.itvsh.ozg.pluto</groupId>
 	<artifactId>pluto-utils</artifactId>
 	<name>KOP Vorgang Manager (Pluto) Utils</name>
-	<version>1.7.0</version>
+	<version>1.8.0-SNAPSHOT</version>
 
 	<properties>
 		<pluto.version>1.3.1</pluto.version>
@@ -234,4 +234,4 @@
 			</plugin>
 		</plugins>
 	</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/pom.xml b/pom.xml
index 64df7b529..dc6652b0d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
 	<modelVersion>4.0.0</modelVersion>
 	<groupId>de.itvsh.ozg</groupId>
 	<artifactId>pluto</artifactId>
-	<version>1.7.0</version>
+	<version>1.8.0-SNAPSHOT</version>
 
 	<name>Pluto Parent</name>
 	<packaging>pom</packaging>
@@ -94,4 +94,3 @@
 		</snapshotRepository>
 	</distributionManagement>
 </project>
-	
\ No newline at end of file
diff --git a/release-startdev.sh b/release-startdev.sh
new file mode 100755
index 000000000..b9957eb9c
--- /dev/null
+++ b/release-startdev.sh
@@ -0,0 +1,58 @@
+#!/bin/bash
+
+#set -x
+
+if [ "$#" -ne 1 ]; then
+    echo "Aufruf: ozg-release-startdev.sh NEWVERSION"
+    exit 1
+fi
+
+NEWVERSION=$1
+
+echo
+
+# pom.xml:main -> project.version setzen
+# projectname/pom.xml:parent -> project.parent.version setzen
+# projectname/pom.xml:parent,main -> project.parent.version und project.version setzen
+#
+PROJECTS="pom.xml:main 
+          pluto-server/pom.xml:main
+          pluto-interface/pom.xml:main
+          pluto-utils/pom.xml:main
+          mail-service/pom.xml:main
+          notification-manager/pom.xml:main
+          pluto-command/pom.xml:main
+        "
+
+for PROJECT in $PROJECTS;
+do
+  POMFILE=$(echo $PROJECT | cut -d':' -f1)
+  ACTIONS=$(echo $PROJECT | cut -d':' -f2)
+
+  ## Auf SNAPSHOT Versionen testen
+  if fgrep -q "SNAPSHOT" $POMFILE; then
+    RED='\033[0;31m'
+    NC='\033[0m'
+    echo "${RED}ERROR: Datei "$POMFILE" enthält noch SNAPSHOT Versionen, das sollte hier nicht passieren.${NC}"
+    exit 1
+  fi
+echo $ACTIONS
+  ## Versionen setzen
+  if [[ $ACTIONS == "main" ]] ; then
+    xmlstarlet ed --pf -L -N w="http://maven.apache.org/POM/4.0.0" -u '//w:project/w:version' -v $NEWVERSION $POMFILE
+  fi
+
+  if [[ $ACTIONS == "parent" ]]; then
+    xmlstarlet ed --pf -L -N w="http://maven.apache.org/POM/4.0.0" -u '//w:project/w:parent/w:version' -v $NEWVERSION $POMFILE
+  fi
+done
+
+
+
+echo
+echo "NEXT STEPS:"
+echo "***********"
+echo "Änderungen prüfen"
+echo "git commit -a -m 'start development "$NEWVERSION"'"
+echo "git push"
+
-- 
GitLab