From 9a4ce1b7f538d1fc6fb16850cd598d4db5c150fa Mon Sep 17 00:00:00 2001
From: Ozan Gunalp <ozangunalp@gmail.com>
Date: Mon, 16 Dec 2024 23:23:47 +0100
Subject: [PATCH] Release 4.26.0-RC1 Take 3 (#2857)

* Skip unreleased modules in performRelease profile

* Interactive shell to enable bashrc to access tools in further steps
---
 .github/project.yml                   |  1 +
 .github/workflows/prepare-release.yml |  1 +
 documentation/pom.xml                 |  7 +++++++
 pom.xml                               | 28 +++++++++++++++++++--------
 4 files changed, 29 insertions(+), 8 deletions(-)

diff --git a/.github/project.yml b/.github/project.yml
index 8f2d858ff..b7c52f0c7 100644
--- a/.github/project.yml
+++ b/.github/project.yml
@@ -3,3 +3,4 @@ release:
     previous-version: 4.25.0
     current-version: 4.26.0-RC1
     next-version: 999-SNAPSHOT
+
diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml
index 17ccebd87..11de85f6d 100644
--- a/.github/workflows/prepare-release.yml
+++ b/.github/workflows/prepare-release.yml
@@ -62,6 +62,7 @@ jobs:
                     git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
 
             -   name: Update files
+                shell: bash -ieo pipefail {0}
                 run: |
                     echo "✅ Clear RevAPI justifications, if any"
                     jbang .build/CompatibilityUtils.java clear
diff --git a/documentation/pom.xml b/documentation/pom.xml
index 9a13066ac..b69b8e3e1 100644
--- a/documentation/pom.xml
+++ b/documentation/pom.xml
@@ -239,6 +239,13 @@
           <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-deploy-plugin</artifactId>
+        <configuration>
+          <skip>true</skip>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
diff --git a/pom.xml b/pom.xml
index 1884a7457..5080ebd4c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -145,18 +145,11 @@
     <module>smallrye-reactive-messaging-gcp-pubsub</module>
     <module>smallrye-reactive-messaging-pulsar</module>
     <module>smallrye-reactive-messaging-aws-sqs</module>
-    <module>examples/quickstart</module>
-    <module>examples/kafka-quickstart</module>
-    <module>examples/kafka-quickstart-kotlin</module>
-    <module>examples/mqtt-quickstart</module>
-    <module>examples/amqp-quickstart</module>
-    <module>examples/rabbitmq-quickstart</module>
 
     <module>smallrye-connector-attribute-processor</module>
     <module>smallrye-reactive-messaging-connector-archetype</module>
 
     <module>test-common</module>
-    <module>tck</module>
   </modules>
 
   <dependencyManagement>
@@ -719,13 +712,32 @@
     <profile>
       <id>with-camel</id>
       <activation>
-        <jdk>[17, 20]</jdk>
+        <jdk>[17,)</jdk>
       </activation>
       <modules>
         <module>smallrye-reactive-messaging-camel</module>
         <module>documentation</module>
       </modules>
     </profile>
+    <profile>
+      <id>skipped-from-release</id>
+      <activation>
+        <property>
+          <name>performRelease</name>
+          <value>!true</value>
+        </property>
+      </activation>
+      <modules>
+<!--        <module>documentation</module>--> <!-- deploy skipped in module -->
+        <module>tck</module>
+        <module>examples/quickstart</module>
+        <module>examples/kafka-quickstart</module>
+        <module>examples/kafka-quickstart-kotlin</module>
+        <module>examples/mqtt-quickstart</module>
+        <module>examples/amqp-quickstart</module>
+        <module>examples/rabbitmq-quickstart</module>
+      </modules>
+    </profile>
     <profile>
       <id>release</id>
       <modules>