diff --git a/kop-common-dependencies/pom.xml b/kop-common-dependencies/pom.xml index 81f3929e477789415a60598b7315253c507e79da..d2e4dbacf69109b509910f9bd7a274bd10563640 100644 --- a/kop-common-dependencies/pom.xml +++ b/kop-common-dependencies/pom.xml @@ -29,7 +29,7 @@ <parent> <groupId>de.itvsh.kop.common</groupId> <artifactId>kop-common</artifactId> - <version>2.0.0-SNAPSHOT</version> + <version>2.0.0</version> </parent> <artifactId>kop-common-dependencies</artifactId> diff --git a/kop-common-lib/pom.xml b/kop-common-lib/pom.xml index 9ad70489f25859dff80c643a48fcf2a054c4e5fe..bfd4b446f4f50a051744a667622de7bf2673f85b 100644 --- a/kop-common-lib/pom.xml +++ b/kop-common-lib/pom.xml @@ -30,7 +30,7 @@ <parent> <groupId>de.itvsh.kop.common</groupId> <artifactId>kop-common</artifactId> - <version>2.0.0-SNAPSHOT</version> + <version>2.0.0</version> </parent> <artifactId>kop-common-lib</artifactId> diff --git a/kop-common-license/pom.xml b/kop-common-license/pom.xml index 88f48047e39287c5079a4779e404f48147c4348d..d8b3ceeac4d24a60fa1a7731377d0ad15192847d 100644 --- a/kop-common-license/pom.xml +++ b/kop-common-license/pom.xml @@ -30,7 +30,7 @@ <groupId>de.itvsh.kop.common</groupId> <artifactId>kop-common-license</artifactId> - <version>1.7.0-SNAPSHOT</version> + <version>1.6.0</version> <packaging>jar</packaging> <name>Kop Common - OS license provider</name> diff --git a/kop-common-parent/pom.xml b/kop-common-parent/pom.xml index 3cd2bf360e2d2513163af9bc24959662d50e3963..78761f24f539bfcf4a3e8587a30558e25015834d 100644 --- a/kop-common-parent/pom.xml +++ b/kop-common-parent/pom.xml @@ -37,7 +37,7 @@ <groupId>de.itvsh.kop.common</groupId> <artifactId>kop-common-parent</artifactId> - <version>2.0.0-SNAPSHOT</version> + <version>2.0.0</version> <packaging>pom</packaging> <name>Kop Common - Parent</name> @@ -48,7 +48,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> - <kop-common.version>2.0.0-SNAPSHOT</kop-common.version> + <kop-common.version>2.0.0</kop-common.version> <kop.license.version>1.6.0</kop.license.version> <spring-boot.version>3.0.5</spring-boot.version> diff --git a/kop-common-pdf/pom.xml b/kop-common-pdf/pom.xml index 2d06894fd595810a6d98c7948b73f07831bf1048..a7558b6ffb24a99f681d3927b31848601945c92b 100644 --- a/kop-common-pdf/pom.xml +++ b/kop-common-pdf/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>de.itvsh.kop.common</groupId> <artifactId>kop-common</artifactId> - <version>2.0.0-SNAPSHOT</version> + <version>2.0.0</version> </parent> <artifactId>kop-common-pdf</artifactId> <name>Kop Common - PDF Export library</name> diff --git a/kop-common-test/pom.xml b/kop-common-test/pom.xml index 2ad6b105dbdbc6b939febadbd4486d088a13e52b..ec92aef8706793a0c1608b61ac8ab5fe28b0a766 100644 --- a/kop-common-test/pom.xml +++ b/kop-common-test/pom.xml @@ -30,7 +30,7 @@ <parent> <groupId>de.itvsh.kop.common</groupId> <artifactId>kop-common-dependencies</artifactId> - <version>2.0.0-SNAPSHOT</version> + <version>2.0.0</version> <relativePath>../kop-common-dependencies</relativePath> </parent> diff --git a/pom.xml b/pom.xml index d013b55545bf5553db415ee57f4edf12d9f83e0a..7498938a4587dcb0979b8d72f0a268858080a50c 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ <groupId>de.itvsh.kop.common</groupId> <artifactId>kop-common</artifactId> - <version>2.0.0-SNAPSHOT</version> + <version>2.1.0-SNAPSHOT</version> <packaging>pom</packaging> <name>Kop Common</name> @@ -45,7 +45,7 @@ <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <kop-common.version>2.0.0-SNAPSHOT</kop-common.version> + <kop-common.version>2.0.0</kop-common.version> <kop.license.version>1.7.0</kop.license.version> <java.version>17</java.version> diff --git a/release-erstellen.sh b/release-erstellen.sh new file mode 100755 index 0000000000000000000000000000000000000000..6ea590d256057705cc80e9ca4f8e2b67f76ebf9b --- /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"