From 78e208087b040c77407be3fd4005a3b930dc6568 Mon Sep 17 00:00:00 2001 From: fmarchioni Date: Mon, 26 Feb 2024 09:50:15 +0100 Subject: [PATCH] update project --- .../mp-health-check/.vscode/settings.json | 3 + micro-services/mp-health-check/pom.xml | 176 ++++++------------ .../health/DatabaseHealthCheck.java | 4 +- .../microprofile/health/JaxRsApplication.java | 4 +- .../microprofile/health/OSHealthCheck.java | 6 +- .../microprofile/health/RootResource.java | 8 +- .../health/SimpleHealthCheck.java | 2 +- 7 files changed, 69 insertions(+), 134 deletions(-) create mode 100644 micro-services/mp-health-check/.vscode/settings.json diff --git a/micro-services/mp-health-check/.vscode/settings.json b/micro-services/mp-health-check/.vscode/settings.json new file mode 100644 index 000000000..c5f3f6b9c --- /dev/null +++ b/micro-services/mp-health-check/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/micro-services/mp-health-check/pom.xml b/micro-services/mp-health-check/pom.xml index ef3f479f6..d9b7b744d 100644 --- a/micro-services/mp-health-check/pom.xml +++ b/micro-services/mp-health-check/pom.xml @@ -5,23 +5,23 @@ com.mastertheboss microprofile-health - 25.0.1.Final-SNAPSHOT + 1.0.0.Final war Quickstart: microprofile-health - 1.8 - 1.8 + 17 + 17 http://localhost:9990 - 25.0.0.Final - 25.0.0.Final - 25.0.0.Final - 5.0.0.Final - 2.0.0.Final - 1.0.1 - registry.redhat.io/ubi8/openjdk-11:latest + 31.0.0.Final + + 31.0.0.Final + 10.0.0.Final + 4.2.2.Final + 1.16.0 + registry.redhat.io/ubi8/openjdk-17:latest @@ -55,7 +55,7 @@ jakarta.platform jakarta.jakartaee-api - 8.0.0 + 10.0.0 provided @@ -78,19 +78,21 @@ wildfly-maven-plugin ${version.wildfly.maven.plugin} - - + - - bootable-jar - - - - org.wildfly.plugins - wildfly-jar-maven-plugin - ${version.wildfly-jar.maven.plugin} - - wildfly@maven(org.jboss.universe:community-universe)#${version.wildfly} - - jaxrs-server - microprofile-platform - - - true - - - - - - package - - - - - - - - - bootable-jar-openshift - - - - org.wildfly.plugins - wildfly-jar-maven-plugin - ${version.wildfly-jar.maven.plugin} - - wildfly@maven(org.jboss.universe:community-universe)#${version.wildfly} - - jaxrs-server - microprofile-platform - - - true - - - - - - - package - - - - - - org.eclipse.jkube - openshift-maven-plugin - ${version.jkube.maven.plugin} - - - - resource - build - - - - - - - - NodePort - - - - - - - + + openshift + + registry.redhat.io/ubi8/openjdk-17:latest + + + + + org.eclipse.jkube + openshift-maven-plugin + ${version.jkube.maven.plugin} + + + + 256 + 96 + + + + + + + resource + build + apply + + + + + + diff --git a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/DatabaseHealthCheck.java b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/DatabaseHealthCheck.java index f86e2b93f..6909f5463 100644 --- a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/DatabaseHealthCheck.java +++ b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/DatabaseHealthCheck.java @@ -7,8 +7,8 @@ import org.eclipse.microprofile.health.HealthCheckResponseBuilder; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; import org.eclipse.microprofile.config.inject.ConfigProperty; import java.io.IOException; diff --git a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/JaxRsApplication.java b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/JaxRsApplication.java index ee1f9cd6f..dfbab974d 100644 --- a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/JaxRsApplication.java +++ b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/JaxRsApplication.java @@ -1,7 +1,7 @@ package com.mastertheboss.microprofile.health; -import javax.ws.rs.ApplicationPath; -import javax.ws.rs.core.Application; +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; @ApplicationPath("/") public class JaxRsApplication extends Application { diff --git a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/OSHealthCheck.java b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/OSHealthCheck.java index 1cdb373fa..fb3601c07 100644 --- a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/OSHealthCheck.java +++ b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/OSHealthCheck.java @@ -4,7 +4,7 @@ import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.eclipse.microprofile.health.HealthCheck; @@ -12,8 +12,8 @@ import org.eclipse.microprofile.health.HealthCheckResponseBuilder; import org.eclipse.microprofile.health.Liveness; -import javax.enterprise.context.ApplicationScoped; -import javax.inject.Inject; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; @Liveness @ApplicationScoped diff --git a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/RootResource.java b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/RootResource.java index 914302d77..fd6ebfdad 100644 --- a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/RootResource.java +++ b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/RootResource.java @@ -1,9 +1,9 @@ package com.mastertheboss.microprofile.health; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/") public class RootResource { diff --git a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/SimpleHealthCheck.java b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/SimpleHealthCheck.java index 9731acd6c..27e32b93c 100644 --- a/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/SimpleHealthCheck.java +++ b/micro-services/mp-health-check/src/main/java/com/mastertheboss/microprofile/health/SimpleHealthCheck.java @@ -3,7 +3,7 @@ import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; import org.eclipse.microprofile.health.Startup; -import javax.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.ApplicationScoped; @Startup