From 210b441b16dab5d46722c14c9507350e68f3bbf3 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 27 Mar 2023 13:36:35 +0200
Subject: [PATCH] release version 1.7.0

---
 mail-service/pom.xml         |  4 ++--
 notification-manager/pom.xml |  6 +++---
 pluto-command/pom.xml        |  4 ++--
 pluto-interface/pom.xml      |  6 +++---
 pluto-server/pom.xml         |  6 +++---
 pluto-utils/pom.xml          |  4 ++--
 pom.xml                      |  2 +-
 release-erstellen.sh         | 23 +++++++++++++++++++++++
 8 files changed, 39 insertions(+), 16 deletions(-)
 create mode 100755 release-erstellen.sh

diff --git a/mail-service/pom.xml b/mail-service/pom.xml
index 57aa3fb12..834d16426 100644
--- a/mail-service/pom.xml
+++ b/mail-service/pom.xml
@@ -30,13 +30,13 @@
 	<parent>
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-parent</artifactId>
-		<version>1.6.0</version>
+		<version>1.6.2</version>
 		<relativePath />
 	</parent>
 
 	<groupId>de.itvsh.ozg.mail</groupId>
 	<artifactId>mail-service</artifactId>
-	<version>1.7.0-SNAPSHOT</version>
+	<version>1.7.0</version>
 	<name>KOP Vorgang Manager Mail Service</name>
 
 	<properties>
diff --git a/notification-manager/pom.xml b/notification-manager/pom.xml
index 0b890c055..cf08bddb8 100644
--- a/notification-manager/pom.xml
+++ b/notification-manager/pom.xml
@@ -29,7 +29,7 @@
 	<parent>
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-parent</artifactId>
-		<version>1.5.0</version>
+		<version>1.6.2</version>
 		<relativePath />
 	</parent>
 
@@ -37,11 +37,11 @@
 	<artifactId>notification-manager</artifactId>
 
 	<name>KOP Notification Manager</name>
-	<version>1.7.0-SNAPSHOT</version>
+	<version>1.7.0</version>
 
 	<properties>
 		<user-manager-interface.version>1.1.0</user-manager-interface.version>
-		<kop.license.version>1.3.0</kop.license.version>
+		<kop.license.version>1.6.0</kop.license.version>
 	</properties>
 
 	<dependencies>
diff --git a/pluto-command/pom.xml b/pluto-command/pom.xml
index 0ad2ac05c..fda26ba05 100644
--- a/pluto-command/pom.xml
+++ b/pluto-command/pom.xml
@@ -3,14 +3,14 @@
 	<parent>
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-dependencies</artifactId>
-		<version>1.5.0</version>
+		<version>1.6.2</version>
 		<relativePath/>
 	</parent>
 	
 	<groupId>de.itvsh.ozg.pluto</groupId>
 	<artifactId>pluto-command</artifactId>
 	<name>Command Manager</name>
-	<version>1.7.0-SNAPSHOT</version>
+	<version>1.7.0</version>
 	
 	<dependencies>
 		<dependency>
diff --git a/pluto-interface/pom.xml b/pluto-interface/pom.xml
index 9f7675807..7fad2d086 100644
--- a/pluto-interface/pom.xml
+++ b/pluto-interface/pom.xml
@@ -30,13 +30,13 @@
 	<parent>
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-dependencies</artifactId>
-		<version>1.5.0</version>
+		<version>1.6.2</version>
 		<relativePath/>
 	</parent>
 
 	<groupId>de.itvsh.ozg.pluto</groupId>
 	<artifactId>pluto-interface</artifactId>
-	<version>1.7.0-SNAPSHOT</version>
+	<version>1.7.0</version>
 
 	<name>KOP Vorgang Manager gRPC Interface</name>
 	<description>Interface (gRPC) for Pluto Server</description>
@@ -49,7 +49,7 @@
 		<maven.compiler.source>${java.version}</maven.compiler.source>
 		<maven.compiler.target>${java.version}</maven.compiler.target>
 
-		<kop.license.version>1.3.0</kop.license.version>
+		<kop.license.version>1.6.0</kop.license.version>
 	</properties>
 
 	<dependencyManagement>
diff --git a/pluto-server/pom.xml b/pluto-server/pom.xml
index 4475d0734..f95f43348 100644
--- a/pluto-server/pom.xml
+++ b/pluto-server/pom.xml
@@ -30,13 +30,13 @@
 	<parent>
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-parent</artifactId>
-		<version>1.6.0</version>
+		<version>1.6.2</version>
 		<relativePath />
 	</parent>
 
 	<groupId>de.itvsh.ozg.pluto</groupId>
 	<artifactId>pluto-server</artifactId>
-	<version>1.7.0-SNAPSHOT</version>
+	<version>1.7.0</version>
 
 	<name>KOP Vorgang Manager (Pluto) Server</name>
 	<description>Server Implementierung des VorgangManagers (Pluto)</description>
@@ -49,7 +49,7 @@
 
 		<kop.license.version>1.3.0</kop.license.version>
 		<kop.zufi.api.version>0.5.0</kop.zufi.api.version>
-		<user-manager-interface.version>1.6.0-SNAPSHOT</user-manager-interface.version>
+		<user-manager-interface.version>1.6.0</user-manager-interface.version>
 
 		<zip.version>2.11.1</zip.version>
 		<jsoup.version>1.15.3</jsoup.version>
diff --git a/pluto-utils/pom.xml b/pluto-utils/pom.xml
index bb84c4b5d..06a98576b 100644
--- a/pluto-utils/pom.xml
+++ b/pluto-utils/pom.xml
@@ -30,14 +30,14 @@
 	<parent>
 		<groupId>de.itvsh.kop.common</groupId>
 		<artifactId>kop-common-dependencies</artifactId>
-		<version>1.5.0</version>
+		<version>1.6.2</version>
 		<relativePath />
 	</parent>
 
 	<groupId>de.itvsh.ozg.pluto</groupId>
 	<artifactId>pluto-utils</artifactId>
 	<name>KOP Vorgang Manager (Pluto) Utils</name>
-	<version>1.7.0-SNAPSHOT</version>
+	<version>1.7.0</version>
 
 	<properties>
 		<pluto.version>1.3.1</pluto.version>
diff --git a/pom.xml b/pom.xml
index f385e2632..64df7b529 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-SNAPSHOT</version>
+	<version>1.7.0</version>
 
 	<name>Pluto Parent</name>
 	<packaging>pom</packaging>
diff --git a/release-erstellen.sh b/release-erstellen.sh
new file mode 100755
index 000000000..6ea590d25
--- /dev/null
+++ b/release-erstellen.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+if [ "$#" -ne 1 ]; then
+    echo "Aufruf: release-erstellen.sh JA"
+    echo "Als Parameter bitte 'JA' eintragen zur Sicherheit"
+    exit 1
+fi
+
+
+## alle -SNAPSHOT in pom.xmls entfernen
+find . -name pom.xml -exec sed -i 's/-SNAPSHOT//g' {} +
+
+## release version auslesen
+NEWVERSION=$(xmlstarlet sel -N w="http://maven.apache.org/POM/4.0.0" -t -v '//w:project/w:version' -n pom.xml)
+
+echo
+echo "NEXT STEPS:"
+echo "***********"
+echo "Änderungen prüfen"
+echo "git commit -a -m 'release version "$NEWVERSION"'"
+echo "git push"
+echo "git tag "$NEWVERSION
+echo "git push --tags"
-- 
GitLab