From 2a2a2ef25b36905fcc74ed63f85e27ab5e2ec53d Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Tue, 17 Dec 2024 11:43:28 +0100
Subject: [PATCH] OZG-6175 OZG-7382 configure nx release

---
 alfa-client/apps/admin/package.json |  4 ++++
 alfa-client/apps/alfa/package.json  |  4 ++++
 alfa-client/apps/info/package.json  |  4 ++++
 alfa-client/nx.json                 | 12 ++++++++++--
 alfa-client/package.json            |  2 +-
 release-erstellen.sh                |  2 ++
 6 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100644 alfa-client/apps/admin/package.json
 create mode 100644 alfa-client/apps/alfa/package.json
 create mode 100644 alfa-client/apps/info/package.json

diff --git a/alfa-client/apps/admin/package.json b/alfa-client/apps/admin/package.json
new file mode 100644
index 0000000000..1d97c4e339
--- /dev/null
+++ b/alfa-client/apps/admin/package.json
@@ -0,0 +1,4 @@
+{
+  "name": "admin",
+  "version": "1.4.0-SNAPSHOT"
+}
\ No newline at end of file
diff --git a/alfa-client/apps/alfa/package.json b/alfa-client/apps/alfa/package.json
new file mode 100644
index 0000000000..da96f20ebd
--- /dev/null
+++ b/alfa-client/apps/alfa/package.json
@@ -0,0 +1,4 @@
+{
+  "name": "alfa",
+  "version": "2.18.0-SNAPSHOT"
+}
\ No newline at end of file
diff --git a/alfa-client/apps/info/package.json b/alfa-client/apps/info/package.json
new file mode 100644
index 0000000000..65bd1b6646
--- /dev/null
+++ b/alfa-client/apps/info/package.json
@@ -0,0 +1,4 @@
+{
+  "name": "info",
+  "version": "1.4.0-SNAPSHOT"
+}
\ No newline at end of file
diff --git a/alfa-client/nx.json b/alfa-client/nx.json
index d4a997871f..76ac8f7e72 100644
--- a/alfa-client/nx.json
+++ b/alfa-client/nx.json
@@ -103,5 +103,13 @@
     }
   },
   "useInferencePlugins": false,
-  "defaultBase": "master"
-}
+  "defaultBase": "master",
+  "release": {
+    "projects": [
+      "admin",
+      "alfa",
+      "info"
+    ],
+    "projectsRelationship": "independent"
+  }
+}
\ No newline at end of file
diff --git a/alfa-client/package.json b/alfa-client/package.json
index b963d1f5df..bb1a16950c 100644
--- a/alfa-client/package.json
+++ b/alfa-client/package.json
@@ -1,6 +1,6 @@
 {
   "name": "alfa",
-  "version": "1.4.0-SNAPSHOT",
+  "version": "0.0.0",
   "license": "MIT",
   "scripts": {
     "start": "nx run alfa:serve --port 4300 --disable-host-check",
diff --git a/release-erstellen.sh b/release-erstellen.sh
index 22249e9bd5..182ce07649 100755
--- a/release-erstellen.sh
+++ b/release-erstellen.sh
@@ -42,6 +42,8 @@ find . -name pom.xml -exec sed $SED_PARAMS '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)
 
+(cd alfa-client && nx release version --projects alfa -d $NEWVERSION)
+
 echo
 echo "NEXT STEPS:"
 echo "***********"
-- 
GitLab