Repository: smallrye/smallrye-health
Pull request #399 (2022-04-06 15:09:20)

Add Jakarta migration script


Patch:
diff --git a/.github/project.yml b/.github/project.yml
index ce459e0..8f7104c 100644
--- a/.github/project.yml
+++ b/.github/project.yml
@@ -1,4 +1,4 @@
 name: SmallRye Health
 release:
-  current-version: 3.2.1
-  next-version: 3.2.2-SNAPSHOT
+  current-version: 3.2.0
+  next-version: 3.2.1-SNAPSHOT
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8ba046d..55010f4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -33,7 +33,8 @@ jobs:
           - { name: "8" }
           - { name: "11" }
           - { name: "17" }
-          - { name: "18" }
+          - { name: "18-ea",
+              download_url: "https://download.java.net/java/GA/jdk18/43f95e8614114aeaa8e8a5fcf20a682d/36/GPL/openjdk-18_linux-x64_bin.tar.gz"}
 
     name: Build with JDK ${{ matrix.java.name }}
 
diff --git a/api/pom.xml b/api/pom.xml
index ed24020..1c651ff 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -3,7 +3,7 @@
   <parent>
     <artifactId>smallrye-health-parent</artifactId>
     <groupId>io.smallrye</groupId>
-    <version>3.2.2-SNAPSHOT</version>
+    <version>3.2.1-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/implementation/pom.xml b/implementation/pom.xml
index 54d52cd..efe99fd 100644
--- a/implementation/pom.xml
+++ b/implementation/pom.xml
@@ -22,7 +22,7 @@
   <parent>
     <groupId>io.smallrye</groupId>
     <artifactId>smallrye-health-parent</artifactId>
-    <version>3.2.2-SNAPSHOT</version>
+    <version>3.2.1-SNAPSHOT</version>
   </parent>
 
   <artifactId>smallrye-health</artifactId>
diff --git a/pom.xml b/pom.xml
index 42b2646..35343fb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
   </parent>
 
   <artifactId>smallrye-health-parent</artifactId>
-  <version>3.2.2-SNAPSHOT</version>
+  <version>3.2.1-SNAPSHOT</version>
 
   <packaging>pom</packaging>
   <name>SmallRye Health: Parent</name>
@@ -38,7 +38,7 @@
     <version.jakarta.servlet>4.0.4</version.jakarta.servlet>
     <version.mutiny>1.4.0</version.mutiny>
     <version.smallrye-config>2.9.2</version.smallrye-config>
-    <version.smallrye-common>1.11.0</version.smallrye-common>
+    <version.smallrye-common>1.10.0</version.smallrye-common>
 
     <version.smallrye.testing.utilities>1.0.0</version.smallrye.testing.utilities>
 
diff --git a/provided-checks/pom.xml b/provided-checks/pom.xml
index ccb8042..3befc44 100644
--- a/provided-checks/pom.xml
+++ b/provided-checks/pom.xml
@@ -4,7 +4,7 @@
   <parent>
     <artifactId>smallrye-health-parent</artifactId>
     <groupId>io.smallrye</groupId>
-    <version>3.2.2-SNAPSHOT</version>
+    <version>3.2.1-SNAPSHOT</version>
   </parent>
 
   <artifactId>smallrye-health-provided-checks</artifactId>
diff --git a/release/pom.xml b/release/pom.xml
index 209ac94..2f971de 100644
--- a/release/pom.xml
+++ b/release/pom.xml
@@ -5,7 +5,7 @@
     <parent>
         <groupId>io.smallrye</groupId>
         <artifactId>smallrye-health-parent</artifactId>
-        <version>3.2.2-SNAPSHOT</version>
+        <version>3.2.1-SNAPSHOT</version>
     </parent>
 
     <artifactId>smallrye-health-release</artifactId>
diff --git a/to-jakarta.sh b/to-jakarta.sh
new file mode 100644
index 0000000..1d48488
--- /dev/null
+++ b/to-jakarta.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+# move to jakarta parent
+find . -type f -name 'pom.xml' -exec sed -i '' 's/smallrye-parent/smallrye-jakarta-parent/g' {} +
+# java sources
+find . -type f -name '*.java' -exec sed -i '' 's/javax./jakarta./g' {} +
+# service loader files
+find . -path "*/src/main/resources/META-INF/services/javax*" | sed -e 'p;s/javax/jakarta/g' | xargs -n2 git mv
+# docs
+find doc -type f -name '*.adoc' -exec sed -i '' 's/javax./jakarta./g' {} +
+
+mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.nextMajorVersion}.0.0-SNAPSHOT
+find examples -depth 1 -type d | xargs -I{} mvn -pl {} build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.nextMajorVersion}.0.0-SNAPSHOT
+
+mvn versions:update-property -Dproperty=version.eclipse.microprofile.health -DnewVersion=4.0
+mvn versions:update-property -Dproperty=version.eclipse.microprofile.config -DnewVersion=3.0.1
+mvn versions:update-property -Dproperty=version.jakarta.servlet -DnewVersion=5.0.0
+mvn versions:update-property -Dproperty=version.smallrye-config -DnewVersion=3.0.0-RC2
+mvn versions:update-property -Dproperty=version.smallrye-common -DnewVersion=2.0.0-RC1
diff --git a/ui/pom.xml b/ui/pom.xml
index 708f0ac..f718f74 100644
--- a/ui/pom.xml
+++ b/ui/pom.xml
@@ -5,7 +5,7 @@
   <parent>
     <groupId>io.smallrye</groupId>
     <artifactId>smallrye-health-parent</artifactId>
-    <version>3.2.2-SNAPSHOT</version>
+    <version>3.2.1-SNAPSHOT</version>
   </parent>
 
   <artifactId>smallrye-health-ui</artifactId>


Test patch:
diff --git a/testsuite/experimental/pom.xml b/testsuite/experimental/pom.xml
index 78b8dad..159b8e2 100644
--- a/testsuite/experimental/pom.xml
+++ b/testsuite/experimental/pom.xml
@@ -3,7 +3,7 @@
   <parent>
     <groupId>io.smallrye</groupId>
     <artifactId>smallrye-health-testsuite-parent</artifactId>
-    <version>3.2.2-SNAPSHOT</version>
+    <version>3.2.1-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/testsuite/pom.xml b/testsuite/pom.xml
index 3554e3d..ce4fd2c 100644
--- a/testsuite/pom.xml
+++ b/testsuite/pom.xml
@@ -3,7 +3,7 @@
   <parent>
     <artifactId>smallrye-health-parent</artifactId>
     <groupId>io.smallrye</groupId>
-    <version>3.2.2-SNAPSHOT</version>
+    <version>3.2.1-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/testsuite/tck/pom.xml b/testsuite/tck/pom.xml
index c347964..a3e1c41 100644
--- a/testsuite/tck/pom.xml
+++ b/testsuite/tck/pom.xml
@@ -22,7 +22,7 @@
   <parent>
     <groupId>io.smallrye</groupId>
     <artifactId>smallrye-health-testsuite-parent</artifactId>
-    <version>3.2.2-SNAPSHOT</version>
+    <version>3.2.1-SNAPSHOT</version>
   </parent>
 
   <artifactId>smallrye-health-tck</artifactId>